Browse Source

Created a new Expo app

main
System Administrator 2 months ago
commit
fc46179e25
  1. 36
      .gitignore
  2. 20
      App.tsx
  3. 28
      app.json
  4. BIN
      assets/adaptive-icon.png
  5. BIN
      assets/favicon.png
  6. BIN
      assets/icon.png
  7. BIN
      assets/splash-icon.png
  8. 8
      index.ts
  9. 24
      package.json
  10. 6
      tsconfig.json
  11. 5620
      yarn.lock

36
.gitignore vendored

@ -0,0 +1,36 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
# dependencies
node_modules/
# Expo
.expo/
dist/
web-build/
expo-env.d.ts
# Native
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
# Metro
.metro-health-check*
# debug
npm-debug.*
yarn-debug.*
yarn-error.*
# macOS
.DS_Store
*.pem
# local env files
.env*.local
# typescript
*.tsbuildinfo

20
App.tsx

@ -0,0 +1,20 @@
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
export default function App() {
return (
<View style={styles.container}>
<Text>Open up App.tsx to start working on your app!</Text>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});

28
app.json

@ -0,0 +1,28 @@
{
"expo": {
"name": "newBrainnelApp",
"slug": "newBrainnelApp",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"newArchEnabled": true,
"splash": {
"image": "./assets/splash-icon.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}

BIN
assets/adaptive-icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
assets/favicon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
assets/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
assets/splash-icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

8
index.ts

@ -0,0 +1,8 @@
import { registerRootComponent } from 'expo';
import App from './App';
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App);

24
package.json

@ -0,0 +1,24 @@
{
"name": "newbrainnelapp",
"license": "0BSD",
"version": "1.0.0",
"main": "index.ts",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web"
},
"dependencies": {
"expo": "~52.0.41",
"expo-status-bar": "~2.0.1",
"react": "18.3.1",
"react-native": "0.76.7"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@types/react": "~18.3.12",
"typescript": "^5.3.3"
},
"private": true
}

6
tsconfig.json

@ -0,0 +1,6 @@
{
"extends": "expo/tsconfig.base",
"compilerOptions": {
"strict": true
}
}

5620
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save