/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule RNTesterApp * @flow */ 'use strict'; const AsyncStorage = require('AsyncStorage'); const BackHandler = require('BackHandler'); const Linking = require('Linking'); const React = require('react'); const ReactNative = require('react-native'); const RNTesterActions = require('./RNTesterActions'); const RNTesterExampleContainer = require('./RNTesterExampleContainer'); const RNTesterExampleList = require('./RNTesterExampleList'); const RNTesterList = require('./RNTesterList.ios'); const RNTesterNavigationReducer = require('./RNTesterNavigationReducer'); const URIActionMap = require('./URIActionMap'); const { Button, AppRegistry, SnapshotViewIOS, StyleSheet, Text, View, SafeAreaView } = ReactNative; import type { RNTesterExample } from './RNTesterList.ios'; import type { RNTesterAction } from './RNTesterActions'; import type { RNTesterNavigationState } from './RNTesterNavigationReducer'; type Props = { exampleFromAppetizeParams: string, }; const APP_STATE_KEY = 'RNTesterAppState.v2'; const Header = ({ onBack, title }: { onBack?: () => mixed, title: string }) => ( {title} {onBack &&