Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import StackWithDrawer from './src/StackWithDrawer';
import StackWithInput from './src/StackWithInput';
import HeaderPreset from './src/HeaderPreset';
import {
HeaderBackgroundDefault,
HeaderBackgroundFade,
} from './src/HeaderBackgrounds';
import DragLimitedToModal from './src/DragLimitedToModal';
import StackAnimationConsumerStack from './src/StackAnimationConsumerStack';
// Comment the following two lines to stop using react-native-screens
// eslint-disable-next-line import/no-unresolved
import { useScreens } from 'react-native-screens';
// eslint-disable-next-line react-hooks/rules-of-hooks
useScreens(true);
// Change `false` to `true` to force RTL. Requires closing and re-opening
// your app after you first load it with this option enabled.
I18nManager.forceRTL(false);
type Item = {
component: React.ComponentType;
title: string;
routeName: string;
};
const data: Item[] = [
{ component: SimpleStack, title: 'Simple', routeName: 'SimpleStack' },
{ component: HeaderPreset, title: 'UIKit Preset', routeName: 'UIKit' },
{ component: RevealStack, title: 'Reveal Preset', routeName: 'Reveal' },
{ component: ImageStack, title: 'Image', routeName: 'ImageStack' },
withWalletConnectConnections,
withWalletConnectOnSessionRequest,
} from './hoc';
import { registerTokenRefreshListener, saveFCMToken } from './model/firebase';
import * as keychain from './model/keychain';
import { Navigation } from './navigation';
import store from './redux/store';
import { requestsForTopic } from './redux/requests';
import Routes from './screens/Routes';
import { parseQueryParams } from './utils';
if (process.env.NODE_ENV === 'development') {
console.disableYellowBox = true;
}
useScreens(false);
class App extends Component {
static propTypes = {
appInitTimestamp: PropTypes.number,
requestsForTopic: PropTypes.func,
sortedWalletConnectors: PropTypes.arrayOf(PropTypes.object),
walletConnectClearTimestamp: PropTypes.func,
walletConnectOnSessionRequest: PropTypes.func,
walletConnectUpdateTimestamp: PropTypes.func,
};
state = { appState: AppState.currentState }
handleOpenLinkingURL = ({ url }) => {
Linking.canOpenURL(url).then((supported) => {
if (supported) {