-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-initialized Expo example app and extracted RN components into a se…
…parate package (#107) * Re-initialized Expo example app and extracted RN components into a separate package * Specifying files for the package
- Loading branch information
1 parent
23a271c
commit 5ada93e
Showing
10 changed files
with
10,717 additions
and
12,718 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { StatusBar } from 'expo-status-bar'; | ||
import React from "react"; | ||
import { StyleSheet, View, SafeAreaView } from 'react-native'; | ||
|
||
import { MochaRemoteProvider, ConnectionText, StatusEmoji, StatusText } from "mocha-remote-react-native"; | ||
|
||
function loadTests() { | ||
require('./simple.test.js'); | ||
} | ||
|
||
export default function App() { | ||
return ( | ||
<MochaRemoteProvider tests={loadTests}> | ||
<StatusBar hidden /> | ||
<SafeAreaView style={styles.container}> | ||
<ConnectionText style={styles.connectionText} /> | ||
<View style={styles.statusContainer}> | ||
<StatusEmoji style={styles.statusEmoji} /> | ||
<StatusText style={styles.statusText} /> | ||
</View> | ||
</SafeAreaView> | ||
</MochaRemoteProvider> | ||
); | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: '#fff', | ||
}, | ||
statusContainer: { | ||
flex: 1, | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
statusEmoji: { | ||
fontSize: 30, | ||
margin: 30, | ||
textAlign: "center", | ||
}, | ||
statusText: { | ||
fontSize: 20, | ||
margin: 20, | ||
textAlign: "center", | ||
}, | ||
connectionText: { | ||
textAlign: "center", | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"compilerOptions": {}, | ||
"extends": "expo/tsconfig.base" | ||
"extends": "expo/tsconfig.base", | ||
"compilerOptions": { | ||
"strict": true | ||
} | ||
} |
Oops, something went wrong.