Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rn): replaced createStackNavigator by createSubStackNavigator
- Loading branch information
Showing
2 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
client/react-native/common/components/Screens/Settings/Devtools.js
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
client/react-native/common/components/Screens/Settings/Devtools/index.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react' | ||
import { createSubStackNavigator } from '../../../../helpers/react-navigation' | ||
import { Header } from '../../../Library' | ||
import List from './List' | ||
import Database from './Database' | ||
import Network from './Network' | ||
|
||
export default createSubStackNavigator( | ||
{ | ||
'devtools/list': List, | ||
'devtools/database': Database, | ||
'devtools/network': Network, | ||
}, | ||
{ | ||
initialRouteName: 'devtools/list', | ||
navigationOptions: ({ navigation }) => ({ | ||
header: ( | ||
<Header | ||
navigation={navigation} | ||
title='Developer Tools' | ||
titleIcon='terminal' | ||
backBtn | ||
/> | ||
), | ||
tabBarVisible: false, | ||
}), | ||
} | ||
) |