Skip to content

Instantly share code, notes, and snippets.

@fachryansyah
Created January 25, 2020 13:39
Show Gist options
  • Save fachryansyah/ae6df9ef93545df546ee5d33b2a4a5fd to your computer and use it in GitHub Desktop.
Save fachryansyah/ae6df9ef93545df546ee5d33b2a4a5fd to your computer and use it in GitHub Desktop.
import { createAppContainer } from 'react-navigation'
import { createStackNavigator } from 'react-navigation-stack'
import { createSharedElementStackNavigator } from 'react-navigation-shared-element'
import HomeScreen from './Screens/HomeScreen'
import DetailScreen from './Screens/DetailScreen'
const sharedStackNavigator = createSharedElementStackNavigator(
createStackNavigator,
{
Home: {
screen: HomeScreen,
navigationOptions: {
header: null
}
},
Detail: {
screen: DetailScreen,
navigationOptions: {
header: null
}
}
}
)
export default createAppContainer(sharedStackNavigator)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment