Commit 5cd670e3 authored by Thibaut Sardan's avatar Thibaut Sardan
Browse files

fix(): typo and more cleanups

parent 4387bcf3
......@@ -2,7 +2,6 @@
xmlns:tools="http://schemas.android.com/tools"
package="io.parity.signer">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.CAMERA" />
......
......@@ -32,9 +32,9 @@ export default class Security extends React.PureComponent {
<Text style={styles.cardText}>NOT SECURE</Text>
</View>
<Text style={styles.text}>
A device is considered not secure if it has access to the internet or has any king of connectivity enabled.
Parity Signer is meant to be used on a device that will be kept offline any time. Enabling any kind of connectivity, such as
Wifi, Cellular, Bluetooth, NFC, USB is a threat to the safety of the private keys stored on the device.
A device is considered not secure if it has access to the internet or has any kind of connectivity enabled.
Parity Signer is meant to be used on a device that will be kept offline at any time. Enabling any connectivity such as
wifi, cellular network, bluetooth, NFC, usb is a threat to the safety of the private keys stored on the device.
</Text>
</ScrollView>
);
......
// Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Parity is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
// @flow
import NetInfo from '@react-native-community/netinfo';
import { Container } from 'unstated';
export default class SecurityStore extends Container {
state = {
isConnected: false
};
constructor(...args) {
super(...args);
// Subscribe
const unsubscribe = NetInfo.addEventListener(state => {
this.setState({ isConnected: state.isConnected });
});
}
componentWillUnmount() {
// Unsubscribe
// this.unsubscribe();
}
isConnected() {
return this.state.isConnected;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment