-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from mauriciord/feature/expo-app
Expo App package with TS
- Loading branch information
Showing
11 changed files
with
6,392 additions
and
762 deletions.
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
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,19 @@ | ||
import React from 'react'; | ||
import { StyleSheet, Text, View } from 'react-native'; | ||
|
||
export default function App() { | ||
return ( | ||
<View style={styles.container}> | ||
<Text>Golden Stack with TS</Text> | ||
</View> | ||
); | ||
} | ||
|
||
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,33 @@ | ||
{ | ||
"expo": { | ||
"name": "Blank Template", | ||
"slug": "expo-app", | ||
"privacy": "public", | ||
"sdkVersion": "36.0.0", | ||
"packagerOpts": { | ||
"config": "metro.config.js" | ||
}, | ||
"platforms": [ | ||
"ios", | ||
"android", | ||
"web" | ||
], | ||
"version": "1.0.0", | ||
"orientation": "portrait", | ||
"icon": "./assets/icon.png", | ||
"splash": { | ||
"image": "./assets/splash.png", | ||
"resizeMode": "contain", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"updates": { | ||
"fallbackToCacheTimeout": 0 | ||
}, | ||
"assetBundlePatterns": [ | ||
"**/*" | ||
], | ||
"ios": { | ||
"supportsTablet": true | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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'], | ||
}; | ||
}; |
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,3 @@ | ||
const { createMetroConfiguration } = require('expo-yarn-workspaces'); | ||
|
||
module.exports = createMetroConfiguration(__dirname); |
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,27 @@ | ||
{ | ||
"name": "@golden-stack/app", | ||
"version": "0.0.1", | ||
"private": true, | ||
"main": "__generated__/AppEntry.js", | ||
"scripts": { | ||
"android": "expo start --android", | ||
"postinstall": "expo-yarn-workspaces postinstall", | ||
"ios": "expo start --ios", | ||
"start": "expo start", | ||
"web": "expo start --web" | ||
}, | ||
"dependencies": { | ||
"expo": "^36.0.2", | ||
"expo-asset": "~8.0.0", | ||
"expo-keep-awake": "^8.0.0", | ||
"react": "~16.9.0", | ||
"react-dom": "~16.9.0", | ||
"react-native": "https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz", | ||
"react-native-web": "~0.11.7" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.0.0", | ||
"babel-preset-expo": "~8.0.0", | ||
"expo-cli": "^3.16.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,46 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"experimentalDecorators": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"importHelpers": true, | ||
"jsx": "react-native", | ||
"lib": ["dom", "esnext"], | ||
"moduleResolution": "node", | ||
"noFallthroughCasesInSwitch": true, | ||
"noEmit": true, | ||
"noEmitHelpers": true, | ||
"noImplicitReturns": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"target": "esnext", | ||
"allowJs": true, | ||
"baseUrl": ".", | ||
// autocomplete paths | ||
"paths": { | ||
"*": ["src/*", "assets/*"], | ||
"components/*": ["src/components/*"], | ||
"constants/*": ["src/constants/*"], | ||
"features/*": ["src/features/*"], | ||
"navigation/*": ["src/navigation/*"], | ||
"screens/*": ["src/screens/*"], | ||
"services/*": ["src/services/*"], | ||
"shared/*": ["src/shared/*"], | ||
"state/*": ["src/state/*"], | ||
"utils/*": ["src/utils/*"], | ||
"assets/*": ["assets/*"] | ||
}, | ||
"removeComments": true, | ||
"typeRoots": ["node_modules/@types", "./src/@types"] | ||
}, | ||
"include": ["src"], | ||
"exclude": [ | ||
"node_modules", | ||
"./node_modules", | ||
"./node_modules/*" | ||
] | ||
} |
Oops, something went wrong.