/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @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 && (