Skip to content

Commit 86ecf55

Browse files
Merge pull request #14 from AlirezaHadjar/feat/expo-v53
Feat/expo v53
2 parents 00561c1 + cba35d4 commit 86ecf55

File tree

12 files changed

+2753
-3306
lines changed

12 files changed

+2753
-3306
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ DerivedData
2828
*.ipa
2929
*.xcuserstate
3030
project.xcworkspace
31+
**/.xcode.env.local
3132

3233
# Android/IJ
3334
#
@@ -80,3 +81,10 @@ lib/
8081
# React Native Codegen
8182
ios/generated
8283
android/generated
84+
85+
# React Native Nitro Modules
86+
nitrogen/
87+
88+
# example native folder
89+
example/android/
90+
example/ios/

babel.config.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
module.exports = {
2-
presets: [
3-
['module:react-native-builder-bob/babel-preset', { modules: 'commonjs' }],
2+
overrides: [
3+
{
4+
exclude: /\/node_modules\//,
5+
presets: ['module:react-native-builder-bob/babel-preset'],
6+
},
7+
{
8+
include: /\/node_modules\//,
9+
presets: ['module:@react-native/babel-preset'],
10+
},
411
],
512
};

example/App.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/app.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
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
},
@@ -20,11 +21,9 @@
2021
"foregroundImage": "./assets/adaptive-icon.png",
2122
"backgroundColor": "#ffffff"
2223
},
24+
"edgeToEdgeEnabled": true,
2325
"package": "fastconfetti.example"
2426
},
25-
"web": {
26-
"favicon": "./assets/favicon.png"
27-
},
28-
"newArchEnabled": true
27+
"web": { "favicon": "./assets/favicon.png" }
2928
}
3029
}

example/assets/splash-icon.png

17.1 KB
Loading

example/assets/splash.png

-46.2 KB
Binary file not shown.

example/index.js

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 './src/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);

example/metro.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const path = require('path');
22
const { getDefaultConfig } = require('@expo/metro-config');
33
const { getConfig } = require('react-native-builder-bob/metro-config');
4-
const pkg = require('../package.json');
54

65
const root = path.resolve(__dirname, '..');
76

@@ -13,6 +12,5 @@ const root = path.resolve(__dirname, '..');
1312
*/
1413
module.exports = getConfig(getDefaultConfig(__dirname), {
1514
root,
16-
pkg,
1715
project: __dirname,
1816
});

example/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
{
22
"name": "react-native-fast-confetti-example",
33
"version": "1.0.0",
4-
"main": "expo/AppEntry.js",
4+
"main": "index.js",
55
"scripts": {
66
"start": "expo start",
7-
"android": "expo start --android",
8-
"ios": "expo start --ios",
7+
"android": "expo run:android",
8+
"ios": "expo run:ios",
99
"web": "expo start --web"
1010
},
1111
"dependencies": {
12-
"@expo/metro-runtime": "~4.0.0",
13-
"@shopify/react-native-skia": "1.5.0",
14-
"expo": "^52.0.25",
15-
"expo-status-bar": "~2.0.1",
16-
"react": "18.3.1",
17-
"react-dom": "18.3.1",
18-
"react-native": "0.76.6",
19-
"react-native-reanimated": "~3.16.1",
20-
"react-native-web": "~0.19.13"
12+
"@expo/metro-runtime": "~5.0.4",
13+
"@shopify/react-native-skia": "v2.0.0-next.4",
14+
"expo": "^53.0.9",
15+
"expo-status-bar": "~2.2.3",
16+
"react": "19.0.0",
17+
"react-dom": "19.0.0",
18+
"react-native": "0.79.2",
19+
"react-native-reanimated": "^3.17.5",
20+
"react-native-web": "~0.20.0"
2121
},
2222
"devDependencies": {
23-
"@babel/core": "^7.20.0",
24-
"react-native-builder-bob": "^0.30.2"
23+
"@babel/core": "^7.26.0",
24+
"react-native-builder-bob": "^0.40.9"
2525
},
2626
"private": true
2727
}

package.json

Lines changed: 40 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
{
22
"name": "react-native-fast-confetti",
3-
"version": "0.8.2",
3+
"version": "0.8.3-beta.1",
44
"description": "The fastest confetti animation library in react native",
5-
"source": "./src/index.tsx",
6-
"main": "./lib/commonjs/index.js",
7-
"module": "./lib/module/index.js",
8-
"types": "./lib/typescript/module/src/index.d.ts",
5+
"main": "./lib/module/index.js",
6+
"types": "./lib/typescript/src/index.d.ts",
7+
"exports": {
8+
".": {
9+
"source": "./src/index.tsx",
10+
"types": "./lib/typescript/src/index.d.ts",
11+
"default": "./lib/module/index.js"
12+
},
13+
"./package.json": "./package.json"
14+
},
915
"files": [
1016
"src",
1117
"lib",
1218
"android",
1319
"ios",
1420
"cpp",
1521
"*.podspec",
22+
"react-native.config.js",
1623
"!ios/build",
1724
"!android/build",
1825
"!android/gradle",
@@ -52,30 +59,33 @@
5259
"registry": "https://registry.npmjs.org/"
5360
},
5461
"devDependencies": {
55-
"@commitlint/config-conventional": "^17.0.2",
62+
"@commitlint/config-conventional": "^19.6.0",
63+
"@eslint/compat": "^1.2.7",
64+
"@eslint/eslintrc": "^3.3.0",
65+
"@eslint/js": "^9.22.0",
5666
"@evilmartians/lefthook": "^1.5.0",
57-
"@react-native/eslint-config": "^0.73.1",
58-
"@release-it/conventional-changelog": "^5.0.0",
59-
"@shopify/react-native-skia": "^1.4.2",
67+
"@react-native/babel-preset": "0.78.2",
68+
"@react-native/eslint-config": "^0.79.2",
69+
"@release-it/conventional-changelog": "^9.0.2",
70+
"@shopify/react-native-skia": "2.0.0-next.4",
6071
"@types/jest": "^29.5.5",
61-
"@types/react": "^18.2.44",
62-
"commitlint": "^17.0.2",
72+
"@types/react": "^19.0.12",
73+
"commitlint": "^19.6.1",
6374
"del-cli": "^5.1.0",
64-
"eslint": "^8.51.0",
65-
"eslint-config-prettier": "^9.0.0",
66-
"eslint-plugin-prettier": "^5.0.1",
75+
"eslint": "^8.56.0",
76+
"eslint-config-prettier": "^10.1.1",
77+
"eslint-plugin-ft-flow": "^3.0.11",
78+
"eslint-plugin-prettier": "^5.2.3",
79+
"hermes-eslint": "^0.28.1",
6780
"jest": "^29.7.0",
6881
"prettier": "^3.0.3",
69-
"react": "18.3.1",
70-
"react-native": "0.76.6",
71-
"react-native-builder-bob": "^0.30.2",
72-
"react-native-reanimated": "~3.16.1",
73-
"release-it": "^15.0.0",
82+
"react": "19.0.0",
83+
"react-native": "0.79.2",
84+
"react-native-builder-bob": "^0.40.9",
85+
"react-native-reanimated": "^3.17.5",
86+
"release-it": "^17.10.0",
7487
"typescript": "^5.2.2"
7588
},
76-
"resolutions": {
77-
"@types/react": "^18.2.44"
78-
},
7989
"peerDependencies": {
8090
"@shopify/react-native-skia": "*",
8191
"react": "*",
@@ -85,7 +95,7 @@
8595
"workspaces": [
8696
"example"
8797
],
88-
"packageManager": "yarn@4.6.0",
98+
"packageManager": "yarn@4.9.1",
8999
"jest": {
90100
"preset": "react-native",
91101
"modulePathIgnorePatterns": [
@@ -111,34 +121,12 @@
111121
},
112122
"plugins": {
113123
"@release-it/conventional-changelog": {
114-
"preset": "angular"
115-
}
116-
}
117-
},
118-
"eslintConfig": {
119-
"root": true,
120-
"extends": [
121-
"@react-native",
122-
"prettier"
123-
],
124-
"rules": {
125-
"react/react-in-jsx-scope": "off",
126-
"prettier/prettier": [
127-
"error",
128-
{
129-
"quoteProps": "consistent",
130-
"singleQuote": true,
131-
"tabWidth": 2,
132-
"trailingComma": "es5",
133-
"useTabs": false
124+
"preset": {
125+
"name": "angular"
134126
}
135-
]
127+
}
136128
}
137129
},
138-
"eslintIgnore": [
139-
"node_modules/",
140-
"lib/"
141-
],
142130
"prettier": {
143131
"quoteProps": "consistent",
144132
"singleQuote": true,
@@ -150,12 +138,6 @@
150138
"source": "src",
151139
"output": "lib",
152140
"targets": [
153-
[
154-
"commonjs",
155-
{
156-
"esm": true
157-
}
158-
],
159141
[
160142
"module",
161143
{
@@ -165,14 +147,14 @@
165147
[
166148
"typescript",
167149
{
168-
"project": "tsconfig.build.json",
169-
"esm": true
150+
"project": "tsconfig.build.json"
170151
}
171152
]
172153
]
173154
},
174155
"create-react-native-library": {
156+
"languages": "js",
175157
"type": "library",
176-
"version": "0.41.2"
158+
"version": "0.50.2"
177159
}
178-
}
160+
}

0 commit comments

Comments
 (0)