mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-25 09:35:19 +00:00
23 lines
412 B
JavaScript
23 lines
412 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,
|
|
},
|
|
});
|