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