Skip to content

Instantly share code, notes, and snippets.

@Wellers0n
Created June 4, 2019 23:22
Show Gist options
  • Save Wellers0n/08e88b54454dc25fd1fe1c33004c09ba to your computer and use it in GitHub Desktop.
Save Wellers0n/08e88b54454dc25fd1fe1c33004c09ba to your computer and use it in GitHub Desktop.
functionExport.js
import React from "react";
import { StyleSheet, Text, View } from 'react-native';
export function navigationOptions({ navigation }) {
return {
header: null
};
}
const FunctionScreen = () => {
return (
<View style={styles.container}>
<Text>Function component!</Text>
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center"
}
});
export default FunctionScreen;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment