mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-26 13:35:24 +08:00
30 lines
612 B
JavaScript
30 lines
612 B
JavaScript
/**
|
|
* @flow
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { DividerHorizontal } from '../helpers';
|
|
import { Button, StyleSheet, View } from 'react-native';
|
|
|
|
const emptyFunction = () => {};
|
|
|
|
const ButtonOnPressExample = () => (
|
|
<View style={styles.horizontal}>
|
|
<Button
|
|
accessibilityLabel="This sounds great!"
|
|
onPress={emptyFunction}
|
|
title="This looks great!"
|
|
/>
|
|
<DividerHorizontal />
|
|
<Button color="#841584" onPress={emptyFunction} title="Ok!" />
|
|
</View>
|
|
);
|
|
|
|
const styles = StyleSheet.create({
|
|
horizontal: {
|
|
flexDirection: 'row'
|
|
}
|
|
});
|
|
|
|
export default ButtonOnPressExample;
|