From 3922ae3175379cd124c316f2421e2fb4ce534fa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Rodriguez=20Ve=CC=81lez?= Date: Fri, 14 Sep 2018 00:08:17 -0400 Subject: [PATCH] Update deprecated calls --- App.js | 4 ++-- MainBottomTabs.js | 8 ++++---- loc/index.js | 8 ++++---- package.json | 4 ++-- screen/receive.js | 4 ++-- screen/send.js | 4 ++-- screen/transactions.js | 4 ++-- screen/wallets.js | 4 ++-- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/App.js b/App.js index 10c8ac339..0b6895819 100644 --- a/App.js +++ b/App.js @@ -2,7 +2,7 @@ import './shim.js'; import React from 'react'; import PropTypes from 'prop-types'; import { Text, ScrollView, StyleSheet } from 'react-native'; -import { DrawerNavigator, SafeAreaView } from 'react-navigation'; +import { createDrawerNavigator, SafeAreaView } from 'react-navigation'; import MainBottomTabs from './MainBottomTabs'; import Selftest from './screen/selftest'; import About from './screen/about'; @@ -51,7 +51,7 @@ const styles = StyleSheet.create({ }, }); -const TabsInDrawer = DrawerNavigator( +const TabsInDrawer = createDrawerNavigator( { MainBottomTabs: { screen: MainBottomTabs, diff --git a/MainBottomTabs.js b/MainBottomTabs.js index a08d74deb..e4238aaf5 100644 --- a/MainBottomTabs.js +++ b/MainBottomTabs.js @@ -1,15 +1,15 @@ -import { TabNavigator } from 'react-navigation'; +import { createBottomTabNavigator } from 'react-navigation'; import transactions from './screen/transactions'; import wallets from './screen/wallets'; import send from './screen/send'; -import settins from './screen/settings'; +import settings from './screen/settings'; import receive from './screen/receive'; /** @type {AppStorage} */ let BlueApp = require('./BlueApp'); -const Tabs = TabNavigator( +const Tabs = createBottomTabNavigator( { Wallets: { screen: wallets, @@ -28,7 +28,7 @@ const Tabs = TabNavigator( path: 'receive', }, Settings: { - screen: settins, + screen: settings, path: 'settings', }, diff --git a/loc/index.js b/loc/index.js index cdaa321ca..5464247b2 100644 --- a/loc/index.js +++ b/loc/index.js @@ -1,4 +1,4 @@ -import LocalizedStrings from 'react-localization'; +import Localization from 'react-localization'; import { AsyncStorage } from 'react-native'; import { Util } from 'expo'; import { AppStorage } from '../class'; @@ -15,8 +15,8 @@ let strings; } // TODO: rewrite this when Expo version is upped - if (Util.getCurrentLocaleAsync) { - let locale = await Util.getCurrentLocaleAsync(); + if (Localization.getCurrentLocaleAsync) { + let locale = await Localization.getCurrentLocaleAsync(); if (locale) { locale = locale.split('-'); locale = locale[0]; @@ -30,7 +30,7 @@ let strings; } })(); -strings = new LocalizedStrings({ +strings = new Localization({ en: require('./en.js'), ru: require('./ru.js'), pt: require('./pt_BR.js'), diff --git a/package.json b/package.json index 33bdbaa60..4b86a4950 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "eslint-plugin-standard": "^3.0.1", "jest-expo": "^23.0.0", "prettier-eslint-cli": "^4.7.1", - "react-native-scripts": "^1.14.1", + "react-native-scripts": "1.8.1", "react-test-renderer": "16.0.0", "rn-nodeify": "github:mvayngrib/rn-nodeify", "snazzy": "^7.0.0", @@ -62,7 +62,7 @@ "react-native-camera": "^0.12.0", "react-native-elements": "^0.18.5", "react-native-flexi-radio-button": "^0.2.2", - "react-native-level-fs": "^3.0.1", + "react-native-level-fs": "^3.0.0", "react-native-material-dropdown": "^0.11.1", "react-native-qrcode": "^0.2.6", "react-native-snap-carousel": "^3.7.2", diff --git a/screen/receive.js b/screen/receive.js index c8d6d5b6a..ba92b60e1 100644 --- a/screen/receive.js +++ b/screen/receive.js @@ -1,8 +1,8 @@ -import { StackNavigator } from 'react-navigation'; +import { createStackNavigator } from 'react-navigation'; import list from './receive/list'; -const ReceiveNavigator = StackNavigator( +const ReceiveNavigator = createStackNavigator( { SendList: { screen: list, diff --git a/screen/send.js b/screen/send.js index a34257f96..ec8e13771 100644 --- a/screen/send.js +++ b/screen/send.js @@ -1,8 +1,8 @@ -import { StackNavigator } from 'react-navigation'; +import { createStackNavigator } from 'react-navigation'; import list from './send/list'; -const SendNavigator = StackNavigator( +const SendNavigator = createStackNavigator( { SendList: { screen: list, diff --git a/screen/transactions.js b/screen/transactions.js index 9a6501041..27dcd4de9 100644 --- a/screen/transactions.js +++ b/screen/transactions.js @@ -1,8 +1,8 @@ -import { StackNavigator } from 'react-navigation'; +import { createStackNavigator } from 'react-navigation'; import list from './transactions/list'; -const TransactionsNavigator = StackNavigator( +const TransactionsNavigator = createStackNavigator( { TransactionsList: { screen: list, diff --git a/screen/wallets.js b/screen/wallets.js index f862ac97b..f9e437d2d 100644 --- a/screen/wallets.js +++ b/screen/wallets.js @@ -1,4 +1,4 @@ -import { StackNavigator } from 'react-navigation'; +import { createStackNavigator } from 'react-navigation'; import WalletsList from './wallets/list'; import AddWallet from './wallets/add'; @@ -20,7 +20,7 @@ import sendCreate from './send/create'; import ManageFunds from './lnd/manageFunds'; import ScanLndInvoice from './lnd/scanLndInvoice'; -const WalletsNavigator = StackNavigator( +const WalletsNavigator = createStackNavigator( { WalletsList: { screen: WalletsList,