Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rn): added an (almost) empty devtools screen
- Loading branch information
Showing
3 changed files
with
56 additions
and
13 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
client/react-native/common/components/Screens/Settings/Devtools.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, { PureComponent } from 'react' | ||
import { Image } from 'react-native' | ||
import { Flex, Header } from '../../Library' | ||
|
||
export default class Devtools extends PureComponent { | ||
static navigationOptions = ({ navigation }) => ({ | ||
header: ( | ||
<Header | ||
navigation={navigation} | ||
title='Developer Tools' | ||
titleIcon='terminal' | ||
backBtn | ||
/> | ||
), | ||
}) | ||
render () { | ||
return ( | ||
<Flex.Cols size={1} align='center' justify='between'> | ||
<Flex.Rows size={1} align='center' justify='between'> | ||
<Image | ||
style={{ width: 300, height: 550 }} | ||
source='https://imgs.xkcd.com/comics/tasks_2x.png' | ||
/> | ||
</Flex.Rows> | ||
</Flex.Cols> | ||
) | ||
} | ||
} |
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
27 changes: 21 additions & 6 deletions
27
client/react-native/common/components/Screens/Settings/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 |
---|---|---|
@@ -1,12 +1,27 @@ | ||
import React from 'react' | ||
import { createStackNavigator } from 'react-navigation' | ||
import { Header } from '../../Library' | ||
import List from './List' | ||
import Devtools from './Devtools' | ||
import MyAccount from './MyAccount' | ||
import MyPublicKey from './MyPublicKey' | ||
import MyQRCode from './MyQRCode' | ||
|
||
export default createStackNavigator({ | ||
List, | ||
MyAccount, | ||
MyPublicKey, | ||
MyQRCode, | ||
}) | ||
export default createStackNavigator( | ||
{ | ||
List, | ||
Devtools, | ||
MyAccount, | ||
MyPublicKey, | ||
MyQRCode, | ||
}, | ||
{ | ||
initialRouteName: 'List', | ||
navigationOptions: ({ navigation }) => ({ | ||
header: ( | ||
<Header navigation={navigation} title='Settings' titleIcon='settings' /> | ||
), | ||
tabBarVisible: false, | ||
}), | ||
} | ||
) |