Skip to content

Instantly share code, notes, and snippets.

@ranveerching

ranveerching/navigation.js Secret

Created Aug 8, 2020
Embed
What would you like to do?
import React from 'react';
import {
NavigationContainer
} from '@react-navigation/native';
import {
createStackNavigator
} from '@react-navigation/stack';
import Loop from './loop';
const Stack = createStackNavigator();
const Navigation = () => {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name='Loop'
component={Loop}
options={{
headerTitle: 'Reanimated Loop Animation',
headerStyle: {
backgroundColor: '#3f51b5'
},
headerTintColor: 'white',
headerTitleAlign: 'center'
}}
/>
</Stack.Navigator>
</NavigationContainer>
)
};
export default Navigation;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.