mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 20:35:19 +08:00
20 lines
398 B
TypeScript
20 lines
398 B
TypeScript
import React from 'react';
|
|
import { Platform, StyleSheet, View } from 'react-native';
|
|
import BaseButton, { ButtonProps } from './Button';
|
|
|
|
export const Button = (props: ButtonProps) => (
|
|
<View style={styles.margin}>
|
|
<BaseButton {...props} />
|
|
</View>
|
|
);
|
|
|
|
const styles = StyleSheet.create({
|
|
margin: {
|
|
...Platform.select({
|
|
android: {
|
|
margin: 10,
|
|
},
|
|
}),
|
|
},
|
|
});
|