mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-09 09:13:32 +08:00
20 lines
365 B
JavaScript
20 lines
365 B
JavaScript
import { StyleSheet, View, Platform } from 'react-native';
|
|
import BaseButton from './Button';
|
|
import React from 'react';
|
|
|
|
export const Button = props => (
|
|
<View style={styles.margin}>
|
|
<BaseButton {...props} />
|
|
</View>
|
|
);
|
|
|
|
const styles = StyleSheet.create({
|
|
margin: {
|
|
...Platform.select({
|
|
android: {
|
|
margin: 10,
|
|
},
|
|
}),
|
|
},
|
|
});
|