Commit dcd9e357 authored by Thibaut Sardan's avatar Thibaut Sardan
Browse files

fix(): status bar

parent 42a7a358
......@@ -162,6 +162,7 @@ android {
}
dependencies {
implementation project(':@react-native-community_netinfo')
implementation project(':react-native-secure-storage')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.0.0'
......
......@@ -3,6 +3,7 @@ package io.parity.signer;
import android.app.Application;
import com.facebook.react.ReactApplication;
import com.reactnativecommunity.netinfo.NetInfoPackage;
import com.reactlibrary.RNSecureStoragePackage;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
......@@ -26,6 +27,7 @@ public class MainApplication extends Application implements ReactApplication {
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new NetInfoPackage(),
new RNSecureStoragePackage(),
new EthkeyBridgePackage(),
new RNGestureHandlerPackage()
......
rootProject.name = 'Parity Signer'
include ':@react-native-community_netinfo'
project(':@react-native-community_netinfo').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/netinfo/android')
include ':react-native-secure-storage'
project(':react-native-secure-storage').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-secure-storage/android')
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
......
......@@ -5,7 +5,6 @@
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
......@@ -62,6 +61,7 @@
EDCE1EC0CA1249279F03F2E2 /* Roboto-Medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E3DA81F74A0847378E71E280 /* Roboto-Medium.ttf */; };
EE896FB251B94030AC713B6F /* Roboto-LightItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8C99AB759A004CEB88AC4455 /* Roboto-LightItalic.ttf */; };
F1569210427145DEBBB5B898 /* Manifold-CF-Extra-Bold.otf in Resources */ = {isa = PBXBuildFile; fileRef = F198D2DE15BC4461B2308E3C /* Manifold-CF-Extra-Bold.otf */; };
BC281020BE04470E86371E16 /* libRNCNetInfo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F78A5174AF744169974591A9 /* libRNCNetInfo.a */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
......@@ -392,6 +392,8 @@
F198D2DE15BC4461B2308E3C /* Manifold-CF-Extra-Bold.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Manifold-CF-Extra-Bold.otf"; path = "../res/fonts/Manifold-CF-Extra-Bold.otf"; sourceTree = "<group>"; };
F2FB2DDD90964B3BB1FC813C /* Octicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Octicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = "<group>"; };
FAE70C1AAEEA45159C8CB0EA /* Roboto-ThinItalic.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Roboto-ThinItalic.ttf"; path = "../res/fonts/Roboto-ThinItalic.ttf"; sourceTree = "<group>"; };
28E4C30CA68041C98EE1012E /* RNCNetInfo.xcodeproj */ = {isa = PBXFileReference; name = "RNCNetInfo.xcodeproj"; path = "../node_modules/@react-native-community/netinfo/ios/RNCNetInfo.xcodeproj"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; };
F78A5174AF744169974591A9 /* libRNCNetInfo.a */ = {isa = PBXFileReference; name = "libRNCNetInfo.a"; path = "libRNCNetInfo.a"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
......@@ -420,6 +422,7 @@
00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
BB1BF6E8C2204EDEA0DEFB71 /* libRNSecureStorage.a in Frameworks */,
BC281020BE04470E86371E16 /* libRNCNetInfo.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -646,6 +649,7 @@
00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
8CC63279C525400CA35EAF96 /* RNSecureStorage.xcodeproj */,
28E4C30CA68041C98EE1012E /* RNCNetInfo.xcodeproj */,
);
name = Libraries;
sourceTree = "<group>";
......@@ -1199,6 +1203,7 @@
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/$(TARGET_NAME)\"",
"\"$(SRCROOT)/$(TARGET_NAME)\"",
);
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
......@@ -1222,6 +1227,7 @@
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/$(TARGET_NAME)\"",
"\"$(SRCROOT)/$(TARGET_NAME)\"",
);
"OTHER_LDFLAGS[arch=*]" = " -lc++";
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
......@@ -1245,6 +1251,7 @@
"$(SRCROOT)/../node_modules/react-native-camera/ios",
"$(SRCROOT)/../rust/signer",
"$(SRCROOT)/../node_modules/react-native-secure-storage/ios/**",
"$(SRCROOT)/../node_modules/@react-native-community/netinfo/ios",
);
INFOPLIST_FILE = NativeSigner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
......@@ -1279,6 +1286,7 @@
"$(SRCROOT)/../node_modules/react-native-camera/ios",
"$(SRCROOT)/../rust/signer",
"$(SRCROOT)/../node_modules/react-native-secure-storage/ios/**",
"$(SRCROOT)/../node_modules/@react-native-community/netinfo/ios",
);
INFOPLIST_FILE = NativeSigner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
......
This diff is collapsed.
......@@ -19,6 +19,7 @@
"commit": "commit-wizard"
},
"dependencies": {
"@react-native-community/netinfo": "^4.1.1",
"bignumber.js": "^4.0.0",
"debounce": "^1.0.0",
"hoist-non-react-statics": "^2.5.0",
......
......@@ -75,12 +75,11 @@ const globalStackNavigationOptions = {
height: 60,
paddingTop: 0,
paddingBottom: 0,
padding: 14,
borderBottomWidth: 0.5,
borderBottomColor: colors.bg_text_sec
},
headerTitleStyle: {
display: 'none'
display: 'none',
},
headerBackTitleStyle: {
fontSize: 20,
......@@ -118,17 +117,16 @@ const Screens = createStackNavigator(
Security: {
screen: Security,
navigationOptions: {
headerTintColor: colors.card_bg,
headerLeft: <SecurityHeaderBackButton />,
headerLeft: <SecurityHeaderBackButton/>,
headerRight: null
}
}
},
{
{
defaultNavigationOptions: globalStackNavigationOptions,
headerMode: 'screen',
navigationOptions: globalStackNavigationOptions
}
)
),
},
TocAndPrivacyPolicy: {
screen: createStackNavigator(
......@@ -144,7 +142,6 @@ const Screens = createStackNavigator(
}
},
{
navigationOptions: globalStackNavigationOptions,
initialRouteParams: {
isWelcome: true
}
......@@ -206,8 +203,8 @@ const Screens = createStackNavigator(
screen: AccountEdit
}
},
{
navigationOptions: globalStackNavigationOptions,
{
defaultNavigationOptions: globalStackNavigationOptions,
initialRouteParams: {
isWelcome: true
}
......
......@@ -6,7 +6,7 @@ export default class HeaderLeftHome extends React.PureComponent {
render() {
return (
<View
style={{ flexDirection: 'row', alignItems: 'center' }}
style={{ flexDirection: 'row', alignItems: 'center', paddingLeft: 14 }}
accessibilityComponentType="button"
accessibilityTraits="button"
testID="header-back"
......@@ -26,7 +26,6 @@ const styles = StyleSheet.create({
height: 60,
flexDirection: 'row',
alignItems: 'center',
padding: 14,
borderBottomWidth: 0.5,
borderBottomColor: colors.bg_text_sec
},
......@@ -39,7 +38,6 @@ const styles = StyleSheet.create({
paddingLeft: 10,
fontSize: 25,
fontFamily: 'Manifold CF',
fontWeight: 'bold',
color: colors.bg_text
}
});
......@@ -27,7 +27,7 @@ export default class SecurityHeader extends React.Component {
render() {
return (
<Subscribe to={[SecurityStore]}>
{securityStore => (
{securityStore => (
<SecurityHeaderView level={securityStore.getLevel()} />
)}
</Subscribe>
......@@ -72,7 +72,8 @@ const styles = StyleSheet.create({
fontSize: 17,
fontFamily: 'Roboto',
fontWeight: 'bold',
color: colors.bg_text_positive
color: colors.bg_text_positive,
paddingRight: 14,
}
});
......
......@@ -28,7 +28,7 @@ import AccountsStore from '../stores/AccountsStore';
export default class AccountEdit extends React.PureComponent {
static navigationOptions = {
title: 'Edit Account'
title: 'Edito Account'
};
constructor(props) {
......
......@@ -15,7 +15,7 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
// @flow
import { NetInfo } from 'react-native';
import NetInfo from '@react-native-community/netinfo';
import { Container } from 'unstated';
type SecurityState = {
......
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