Last active
March 15, 2022 14:43
-
-
Save arnoldc/c97f2e89a2087f43dd5ca3977974d330 to your computer and use it in GitHub Desktop.
[React Native] Component Typescript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import {View, Text, StyleSheet} from 'react-native'; | |
| interface ITest {} | |
| const Foo: React.FC<ITest> = () => { | |
| return ( | |
| <View style={styles.container}> | |
| <Text>Hello World </Text> | |
| </View> | |
| ); | |
| }; | |
| export default Foo; | |
| const styles = StyleSheet.create({ | |
| container: { | |
| flex: 1, | |
| }, | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment