diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57fb6b3a..8f0a0767 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,5 +64,5 @@ jobs: working-directory: example/windows - name: Build run: | - MSBuild -t:Rebuild -p:Configuration=Release -p:Platform=x64 ReactTestApp.sln + MSBuild -t:Rebuild -p:Configuration=Release -p:Platform=x64 -p:BundleEntryFile=index.ts ReactTestApp.sln working-directory: example/windows diff --git a/example/App.js b/example/App.js deleted file mode 100644 index b2fe194f..00000000 --- a/example/App.js +++ /dev/null @@ -1,167 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - * @flow - */ - -import React, {Component} from 'react'; -import { - StyleSheet, - SafeAreaView, - Text, - TouchableOpacity, - View, - Keyboard, - Button, -} from 'react-native'; - -import GetSetClear from './examples/GetSetClear'; -import MergeItem from './examples/MergeItem'; -import BasicExample from './examples/Basic'; - -const TESTS = { - GetSetClear: { - title: 'Simple Get/Set value', - testId: 'get-set-clear', - description: 'Store and retrieve persisted data', - render() { - return ; - }, - }, - MergeItem: { - title: 'Merge item', - testId: 'merge-item', - description: 'Merge object with already stored data', - render() { - return ; - }, - }, - Basic: { - title: 'Basic', - testId: 'basic', - description: 'Basic functionality test', - render() { - return ; - }, - }, -}; - -type Props = {}; -type State = {restarting: boolean, currentTest: Object}; - -export default class App extends Component { - state = { - restarting: false, - currentTest: TESTS.GetSetClear, - }; - - _simulateRestart = () => { - this.setState({restarting: true}, () => this.setState({restarting: false})); - }; - - _changeTest = (testName) => { - this.setState({currentTest: TESTS[testName]}); - }; - - render() { - const {restarting, currentTest} = this.state; - return ( - - Keyboard.dismiss()} - testID="closeKeyboard" - /> - - - Simulate Restart - - - -