mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-25 01:28:16 +00:00
30 lines
422 B
JavaScript
30 lines
422 B
JavaScript
/* @flow */
|
|
|
|
import React from 'react';
|
|
|
|
import {
|
|
StyleSheet,
|
|
Text,
|
|
} from 'react-native';
|
|
|
|
/**
|
|
* Used across examples as a screen placeholder.
|
|
*/
|
|
import type { Children } from 'react';
|
|
|
|
const SampleText = ({
|
|
children
|
|
}: {
|
|
children?: Children
|
|
}) => (
|
|
<Text style={styles.sampleText}>{children}</Text>
|
|
);
|
|
|
|
export default SampleText;
|
|
|
|
const styles = StyleSheet.create({
|
|
sampleText: {
|
|
margin: 14,
|
|
},
|
|
});
|