Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial scaffolding for the demo app
- Loading branch information
Showing
16 changed files
with
12,265 additions
and
1 deletion.
There are no files selected for viewing
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 @@ | ||
.DS_Store |
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 @@ | ||
10.13 |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules/**/* | ||
.expo/* | ||
npm-debug.* | ||
*.jks | ||
*.p12 | ||
*.key | ||
*.mobileprovision |
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 @@ | ||
10.13 |
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 @@ | ||
{} |
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,50 @@ | ||
import React from "react"; | ||
import { StyleSheet, Text, View } from "react-native"; | ||
import { AppLoading, Asset, Font } from "expo"; | ||
|
||
export default class App extends React.Component { | ||
state = { | ||
isLoadingComplete: false | ||
}; | ||
|
||
render() { | ||
if (!this.state.isLoadingComplete && !this.props.skipLoadingScreen) { | ||
return ( | ||
<AppLoading | ||
startAsync={this._loadResourcesAsync} | ||
onError={this._handleLoadingError} | ||
onFinish={this._handleFinishLoading} | ||
/> | ||
); | ||
} else { | ||
return ( | ||
<View style={styles.container}> | ||
<Text>Welcome to the Tasit demo app</Text> | ||
</View> | ||
); | ||
} | ||
} | ||
|
||
_loadResourcesAsync = async () => { | ||
return Promise.all([Asset.loadAsync([]), Font.loadAsync({})]); | ||
}; | ||
|
||
_handleLoadingError = error => { | ||
// In this case, you might want to report the error to your error | ||
// reporting service, for example Sentry | ||
console.warn(error); | ||
}; | ||
|
||
_handleFinishLoading = () => { | ||
this.setState({ isLoadingComplete: true }); | ||
}; | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: "#fff", | ||
alignItems: "center", | ||
justifyContent: "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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"expo": { | ||
"name": "tasit-demo", | ||
"description": "A demo app showing proper usage of the Tasit SDK", | ||
"slug": "tasit-demo", | ||
"privacy": "unlisted", | ||
"sdkVersion": "31.0.0", | ||
"platforms": ["ios", "android"], | ||
"version": "0.0.1", | ||
"orientation": "portrait", | ||
"icon": "./assets/images/icon.png", | ||
"splash": { | ||
"image": "./assets/images/splash.png", | ||
"resizeMode": "contain", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"updates": { | ||
"fallbackToCacheTimeout": 0 | ||
}, | ||
"assetBundlePatterns": ["**/*"], | ||
"ios": { | ||
"supportsTablet": true | ||
} | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,6 @@ | ||
module.exports = function(api) { | ||
api.cache(true); | ||
return { | ||
presets: ['babel-preset-expo'], | ||
}; | ||
}; |
Empty file.
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,14 @@ | ||
const tintColor = "#2f95dc"; | ||
|
||
export default { | ||
tintColor, | ||
tabIconDefault: "#ccc", | ||
tabIconSelected: tintColor, | ||
tabBar: "#fefefe", | ||
errorBackground: "red", | ||
errorText: "#fff", | ||
warningBackground: "#EAEB5E", | ||
warningText: "#666804", | ||
noticeBackground: tintColor, | ||
noticeText: "#fff" | ||
}; |
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,12 @@ | ||
import { Dimensions } from "react-native"; | ||
|
||
const width = Dimensions.get("window").width; | ||
const height = Dimensions.get("window").height; | ||
|
||
export default { | ||
window: { | ||
width, | ||
height | ||
}, | ||
isSmallDevice: width < 375 | ||
}; |
Oops, something went wrong.