Skip to content

Commit 431d328

Browse files
committed
Update react-native-reanimated version and adjust Babel and Metro configurations
1 parent 46a257f commit 431d328

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module.exports = {
22
presets: ['module:@react-native/babel-preset', 'nativewind/babel'],
33
plugins: [
4-
'react-native-reanimated/plugin',
54
[
65
'module-resolver',
76
{
@@ -16,6 +15,7 @@ module.exports = {
1615
'@': './src/',
1716
},
1817
},
18+
'react-native-reanimated/plugin',
1919
],
2020
],
2121
env: {

bun.lockb

759 Bytes
Binary file not shown.

metro.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config')
22
const { withNativeWind } = require('nativewind/metro')
3+
const { wrapWithReanimatedMetroConfig } = require('react-native-reanimated/metro-config')
34
// const path = require('path')
45
const defaultConfig = getDefaultConfig(__dirname)
56
const { assetExts, sourceExts } = defaultConfig.resolver
@@ -20,4 +21,4 @@ const config = mergeConfig(defaultConfig, {
2021
},
2122
})
2223

23-
module.exports = withNativeWind(config, { input: './global.css' })
24+
module.exports = wrapWithReanimatedMetroConfig(withNativeWind(config, { input: './global.css' }))

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"react-native-gesture-handler": "^2.22.0",
3939
"react-native-linear-gradient": "^2.8.3",
4040
"react-native-mmkv": "^3.2.0",
41-
"react-native-reanimated": "3.16.3",
41+
"react-native-reanimated": "^3.16.7",
4242
"react-native-safe-area-context": "^5.1.0",
4343
"react-native-screens": "^4.5.0",
4444
"react-native-svg": "^15.11.1",

0 commit comments

Comments
 (0)