Bump deps (#232)

* Bump deps

* Linting updates (remove hack)
This commit is contained in:
Jaco Greeff
2019-10-22 13:37:20 +02:00
committed by GitHub
parent 4de930db05
commit f2f36e2db0
12 changed files with 304 additions and 403 deletions
+11 -21
View File
@@ -3,24 +3,12 @@
// of the Apache-2.0 license. See the LICENSE file for details.
import React, { useEffect, useState } from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
Button
} from 'react-native';
import {
Colors
} from 'react-native/Libraries/NewAppScreen';
import { Button, SafeAreaView, ScrollView, StatusBar, StyleSheet, Text, View } from 'react-native';
import { Colors } from 'react-native/Libraries/NewAppScreen';
import Identicon from '@polkadot/reactnative-identicon';
import keyring from '@polkadot/ui-keyring';
import settings from '@polkadot/ui-settings';
import { mnemonicGenerate, cryptoWaitReady } from '@polkadot/util-crypto';
import keyring from '@polkadot/ui-keyring';
const styles = StyleSheet.create({
scrollView: {
@@ -56,9 +44,9 @@ const styles = StyleSheet.create({
}
});
const globalAny: any = global;
const globalAny = global as unknown as Window;
const App = () => {
export default function App (): React.ReactElement<{}> | null {
const [ready, setReady] = useState(false);
const [address, setAddress] = useState<string | null>(null);
const [phrase, setPhrase] = useState<string | null>(null);
@@ -138,7 +126,11 @@ const App = () => {
{settings.availablePrefixes
.filter((_, index): boolean => index !== 0)
.map(({ text, value }): React.ReactNode => (
<Button key={value} title={text} onPress={(): void => _onChangeSS58Format(value.toString())} />
<Button
key={value}
title={text}
onPress={(): void => _onChangeSS58Format(value.toString())}
/>
))
}
</View>
@@ -148,6 +140,4 @@ const App = () => {
</SafeAreaView>
</>
);
};
export default App;
}