Created
November 11, 2021 16:28
-
-
Save ConradSulzer/58e7f372af54ae8596fca9d400670492 to your computer and use it in GitHub Desktop.
React Native Functional Component Template
This file contains 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, {useState, useEffect} from 'react' | |
import {StyleSheet, View} from 'react-native' | |
const MyFunctionalComponent = (props) => { | |
useEffect(() => { | |
//on load logic | |
}, []) | |
return ( | |
<View style={{flex: 1}}> | |
</View> | |
) | |
} | |
MyFunctionalComponent.navigationOptions = (navigation) => { | |
return { | |
title: `My Title`, | |
headerStyle: { | |
backgroundColor: Colors.navigationBkgd, | |
}, | |
headerTintColor: Colors.navigationColor, | |
} | |
} | |
const styles = StyleSheet.create({ | |
}) | |
export default MyFunctionalComponent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment