Skip to content

Commit 1f05c7c

Browse files
authored
fix(example-app): remove react-native-reanimated (#1509 by @frankcalise)
[skip ci] ## Describe your PR - Removes `react-native-reanimated` dependency from the Example App - Simplifies the Example App for easier contributions (in the terms of, it's less of a headache to build, see Why) - Tested building Android, switching between old and new arch without any hiccups or patching that @morganick has begun to push upstream ## Why - It's been trouble in a monorepo setting - We don't use it in the example app, it was just from Ignite spin up
1 parent bb59b32 commit 1f05c7c

File tree

3 files changed

+112
-153
lines changed

3 files changed

+112
-153
lines changed

Diff for: apps/example-app/babel.config.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
/** @type {import('@babel/core').TransformOptions['plugins']} */
2-
const plugins = [
3-
/** react-native-reanimated web support @see https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/#web */
4-
"@babel/plugin-proposal-export-namespace-from",
5-
/** NOTE: This must be last in the plugins @see https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/#babel-plugin */
6-
"react-native-reanimated/plugin",
7-
]
2+
const plugins = []
83

94
/** @type {import('@babel/core').TransformOptions} */
105
module.exports = function (api) {
116
api.cache(true)
127
return {
138
assumptions: {
14-
"setPublicClassFields": true,
9+
setPublicClassFields: true,
1510
},
1611
presets: ["babel-preset-expo"],
1712
env: {

Diff for: apps/example-app/package.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"build:android:dev": "eas build --profile development:device --platform android --local",
2525
"build:android:prod": "eas build --profile production --platform android --local",
2626
"start": "npx expo start",
27-
"android": "npx expo start --android",
28-
"ios": "npx expo start --ios",
27+
"android": "expo run:android",
28+
"ios": "expo run:ios",
2929
"web": "npx expo start --web",
3030
"bundle:web": "npx expo export --platform web",
3131
"serve:web": "npx server dist",
@@ -41,13 +41,13 @@
4141
"@shopify/flash-list": "1.6.4",
4242
"apisauce": "3.0.1",
4343
"date-fns": "^2.30.0",
44-
"expo": "^51.0.31",
44+
"expo": "~51.0.36",
4545
"expo-build-properties": "~0.12.5",
46-
"expo-font": "~12.0.9",
46+
"expo-font": "~12.0.10",
4747
"expo-linear-gradient": "~13.0.2",
4848
"expo-linking": "~6.3.1",
4949
"expo-localization": "~15.0.3",
50-
"expo-splash-screen": "~0.27.5",
50+
"expo-splash-screen": "~0.27.6",
5151
"expo-status-bar": "~1.12.1",
5252
"i18n-js": "3.9.2",
5353
"mobx": "6.10.2",
@@ -57,7 +57,6 @@
5757
"react-dom": "18.2.0",
5858
"react-native": "0.74.5",
5959
"react-native-gesture-handler": "~2.16.1",
60-
"react-native-reanimated": "~3.10.1",
6160
"react-native-safe-area-context": "4.10.5",
6261
"react-native-screens": "3.31.1",
6362
"react-native-view-shot": "3.8.0",

0 commit comments

Comments
 (0)