mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-20 10:12:01 +01:00
commit
01ad4a8d01
75
App.js
75
App.js
@ -1,12 +1,5 @@
|
|||||||
import './shim.js';
|
import './shim.js';
|
||||||
import React from 'react';
|
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import { Text, ScrollView, StyleSheet } from 'react-native';
|
|
||||||
import { createDrawerNavigator, SafeAreaView } from 'react-navigation';
|
|
||||||
import MainBottomTabs from './MainBottomTabs';
|
import MainBottomTabs from './MainBottomTabs';
|
||||||
import Selftest from './screen/selftest';
|
|
||||||
import About from './screen/settings/about';
|
|
||||||
import PlausibleDeniability from './screen/plausibledeniability';
|
|
||||||
import Sentry from 'sentry-expo';
|
import Sentry from 'sentry-expo';
|
||||||
Sentry.config('https://23377936131848ca8003448a893cb622@sentry.io/1295736').install();
|
Sentry.config('https://23377936131848ca8003448a893cb622@sentry.io/1295736').install();
|
||||||
|
|
||||||
@ -18,70 +11,4 @@ if (!Error.captureStackTrace) {
|
|||||||
Error.captureStackTrace = () => {};
|
Error.captureStackTrace = () => {};
|
||||||
}
|
}
|
||||||
|
|
||||||
const pkg = require('./package.json');
|
export default MainBottomTabs;
|
||||||
const appjson = require('./app.json');
|
|
||||||
|
|
||||||
// <DrawerItems {...props} />
|
|
||||||
|
|
||||||
const CustomDrawerContentComponent = props => (
|
|
||||||
<ScrollView>
|
|
||||||
<SafeAreaView style={styles.container} forceInset={{ top: 'always', horizontal: 'never' }}>
|
|
||||||
<Text onPress={() => props.navigation.navigate('About')} style={styles.heading}>
|
|
||||||
{' '}
|
|
||||||
{pkg.name} v{pkg.version} (build {appjson.expo.ios.buildNumber})
|
|
||||||
</Text>
|
|
||||||
</SafeAreaView>
|
|
||||||
</ScrollView>
|
|
||||||
);
|
|
||||||
|
|
||||||
CustomDrawerContentComponent.propTypes = {
|
|
||||||
navigation: PropTypes.shape({
|
|
||||||
navigate: PropTypes.func,
|
|
||||||
}),
|
|
||||||
};
|
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
|
||||||
container: {
|
|
||||||
marginTop: 20,
|
|
||||||
flex: 1,
|
|
||||||
},
|
|
||||||
heading: {
|
|
||||||
textAlign: 'center',
|
|
||||||
color: 'black',
|
|
||||||
fontWeight: 'bold',
|
|
||||||
fontSize: 20,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const TabsInDrawer = createDrawerNavigator(
|
|
||||||
{
|
|
||||||
MainBottomTabs: {
|
|
||||||
screen: MainBottomTabs,
|
|
||||||
navigationOptions: {
|
|
||||||
drawer: () => ({
|
|
||||||
label: 'Tabs',
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Selftest: {
|
|
||||||
screen: Selftest,
|
|
||||||
navigationOptions: {},
|
|
||||||
},
|
|
||||||
About: {
|
|
||||||
screen: About,
|
|
||||||
navigationOptions: {},
|
|
||||||
},
|
|
||||||
PlausibleDeniability: {
|
|
||||||
screen: PlausibleDeniability,
|
|
||||||
navigationOptions: {},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
contentComponent: CustomDrawerContentComponent,
|
|
||||||
drawerOpenRoute: 'DrawerOpen',
|
|
||||||
drawerCloseRoute: 'DrawerClose',
|
|
||||||
drawerToggleRoute: 'DrawerToggle',
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
export default TabsInDrawer;
|
|
||||||
|
@ -15,7 +15,9 @@ import PropTypes from 'prop-types';
|
|||||||
/** @type {AppStorage} */
|
/** @type {AppStorage} */
|
||||||
let BlueApp = require('../../BlueApp');
|
let BlueApp = require('../../BlueApp');
|
||||||
const { width, height } = Dimensions.get('window');
|
const { width, height } = Dimensions.get('window');
|
||||||
let loc = require('../../loc/');
|
const loc = require('../../loc/');
|
||||||
|
const pkg = require('../../package.json');
|
||||||
|
const appjson = require('../../app.json');
|
||||||
|
|
||||||
export default class About extends Component {
|
export default class About extends Component {
|
||||||
static navigationOptions = () => ({
|
static navigationOptions = () => ({
|
||||||
@ -45,7 +47,7 @@ export default class About extends Component {
|
|||||||
<SafeBlueArea forceInset={{ horizontal: 'always' }} style={{ flex: 1 }}>
|
<SafeBlueArea forceInset={{ horizontal: 'always' }} style={{ flex: 1 }}>
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
<BlueCard>
|
<BlueCard>
|
||||||
<BlueText h4>BlueWallet is free and opensource Bitcoin wallet. Licensed MIT.</BlueText>
|
<BlueText h4>BlueWallet is a free and open source Bitcoin wallet. Licensed MIT.</BlueText>
|
||||||
<BlueSpacing20 />
|
<BlueSpacing20 />
|
||||||
|
|
||||||
<BlueButton
|
<BlueButton
|
||||||
@ -114,6 +116,11 @@ export default class About extends Component {
|
|||||||
<BlueTextCentered>
|
<BlueTextCentered>
|
||||||
{Constants.platform.ios.model} ({Constants.platform.ios.platform})
|
{Constants.platform.ios.model} ({Constants.platform.ios.platform})
|
||||||
</BlueTextCentered>
|
</BlueTextCentered>
|
||||||
|
<BlueSpacing20 />
|
||||||
|
|
||||||
|
<BlueTextCentered>
|
||||||
|
{pkg.name} v{pkg.version} (build {appjson.expo.ios.buildNumber})
|
||||||
|
</BlueTextCentered>
|
||||||
</BlueCard>
|
</BlueCard>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
</SafeBlueArea>
|
</SafeBlueArea>
|
||||||
|
Loading…
Reference in New Issue
Block a user