Update deprecated calls

This commit is contained in:
Marcos Rodriguez Vélez 2018-09-14 00:08:17 -04:00 committed by Igor Korsakov
parent 04aad1f7bf
commit 3922ae3175
8 changed files with 20 additions and 20 deletions

4
App.js
View File

@ -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,

View File

@ -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',
},

View File

@ -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'),

View File

@ -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",

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,