Skip to content

Instantly share code, notes, and snippets.

@Taofiqq
Last active May 20, 2022 20:03
Show Gist options
  • Save Taofiqq/10e9329b985322ed5197d3fd3e5e2990 to your computer and use it in GitHub Desktop.
Save Taofiqq/10e9329b985322ed5197d3fd3e5e2990 to your computer and use it in GitHub Desktop.
Screens
// Settings Screen
import { StyleSheet, Text, View } from "react-native";
import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
const Stack = createStackNavigator();
const Settings = () => (
<View style={styles.container}>
<Text>Settings</Text>
</View>
);
const SettingsNavigator = () => {
return (
<Stack.Navigator
screenOptions={{
headerShown: false,
}}
>
<Stack.Screen name="Settings" component={Settings} />
</Stack.Navigator>
);
};
export default SettingsNavigator;
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});
// Privacy Screen
import { StyleSheet, Text, View } from "react-native";
import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
const Stack = createStackNavigator();
const Privacy = () => (
<View style={styles.container}>
<Text>Privacy</Text>
</View>
);
const PrivacyNavigator = () => {
return (
<Stack.Navigator
screenOptions={{
headerShown: false,
}}
>
<Stack.Screen name="Privacy" component={Privacy} />
</Stack.Navigator>
);
};
export default PrivacyNavigator;
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});
// Explore Screen
import { StyleSheet, Text, View } from "react-native";
import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
const Stack = createStackNavigator();
const Explore = () => (
<View style={styles.container}>
<Text>Explore</Text>
</View>
);
const ExploreNavigator = () => {
return (
<Stack.Navigator
screenOptions={{
headerShown: false,
}}
>
<Stack.Screen name="Explore" component={Explore} />
</Stack.Navigator>
);
};
export default ExploreNavigator;
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});
// Payment Screen
import { StyleSheet, Text, View } from "react-native";
import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
const Stack = createStackNavigator();
const Payment = () => (
<View style={styles.container}>
<Text>Payment</Text>
</View>
);
const PaymentNavigator = () => {
return (
<Stack.Navigator
screenOptions={{
headerShown: false,
}}
>
<Stack.Screen name="Payment" component={Payment} />
</Stack.Navigator>
);
};
export default PaymentNavigator;
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment