Component
const App = () => {
return <Text>Hello Native</Text>;
}
Styles
const styles = StyleSheet.create({
container: { flex: 1 }
});
Hooks
const [count, setCount] = useState(0);
Flexbox
flexDirection: "row",
justifyContent: "center"
Props
const Greet = ({ name }) => <Text>{name}</Text>
Fetch
useEffect(() => {
fetchData();
}, []);