Skip to content

Instantly share code, notes, and snippets.

@arnoldc
Last active March 15, 2022 14:43
Show Gist options
  • Select an option

  • Save arnoldc/c97f2e89a2087f43dd5ca3977974d330 to your computer and use it in GitHub Desktop.

Select an option

Save arnoldc/c97f2e89a2087f43dd5ca3977974d330 to your computer and use it in GitHub Desktop.
[React Native] Component Typescript
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