Skip to content

Commit c817495

Browse files
authored
Merge pull request #352 from gmsgowtham/fix/deps-and-types
fix: react version support and ReactStyle type
2 parents 70952f8 + e7d28d9 commit c817495

23 files changed

+2811
-7766
lines changed

.watchmanconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{}
1+
{}

biome.json

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.3.1/schema.json",
3-
"organizeImports": {
4-
"enabled": true
2+
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
3+
"assist": {
4+
"actions": {
5+
"source": {
6+
"organizeImports": "on"
7+
}
8+
}
59
},
610
"linter": {
711
"enabled": true,
@@ -13,12 +17,18 @@
1317
"enabled": true
1418
},
1519
"files": {
16-
"ignore": [
17-
"dist",
18-
"node_modules",
19-
"example/node_modules",
20-
"example/.expo",
21-
"coverage"
20+
"includes": [
21+
"src/**",
22+
"example/**",
23+
"biome.json",
24+
"package.json",
25+
"renovate.json",
26+
"tsconfig.json",
27+
"babel.config.js",
28+
"tsconfig.build.json"
2229
]
30+
},
31+
"javascript": {
32+
"jsxRuntime": "reactClassic"
2333
}
2434
}

example/.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
2+
3+
# dependencies
4+
node_modules/
5+
6+
# Expo
7+
.expo/
8+
dist/
9+
web-build/
10+
expo-env.d.ts
11+
12+
# Native
13+
.kotlin/
14+
*.orig.*
15+
*.jks
16+
*.p8
17+
*.p12
18+
*.key
19+
*.mobileprovision
20+
21+
# Metro
22+
.metro-health-check*
23+
24+
# debug
25+
npm-debug.*
26+
yarn-debug.*
27+
yarn-error.*
28+
29+
# macOS
30+
.DS_Store
31+
*.pem
32+
33+
# local env files
34+
.env*.local
35+
36+
# typescript
37+
*.tsbuildinfo

example/App.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

example/app.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,21 @@
66
"orientation": "portrait",
77
"icon": "./assets/icon.png",
88
"userInterfaceStyle": "light",
9+
"newArchEnabled": true,
910
"splash": {
10-
"image": "./assets/splash.png",
11+
"image": "./assets/splash-icon.png",
1112
"resizeMode": "contain",
1213
"backgroundColor": "#ffffff"
1314
},
14-
"assetBundlePatterns": ["**/*"],
1515
"ios": {
1616
"supportsTablet": true
1717
},
1818
"android": {
1919
"adaptiveIcon": {
2020
"foregroundImage": "./assets/adaptive-icon.png",
2121
"backgroundColor": "#ffffff"
22-
}
22+
},
23+
"edgeToEdgeEnabled": true
2324
},
2425
"web": {
2526
"favicon": "./assets/favicon.png"

example/assets/splash-icon.png

17.1 KB
Loading

example/assets/splash.png

-46.2 KB
Binary file not shown.

example/babel.config.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

example/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { registerRootComponent } from "expo";
2+
3+
import App from "./App";
4+
5+
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
6+
// It also ensures that whether you load the app in Expo Go or in a native build,
7+
// the environment is set up appropriately
8+
registerRootComponent(App);

0 commit comments

Comments
 (0)