File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 66const { getPackageVersion, toVersionNumber, v } = require ( "../scripts/helpers" ) ;
77const { withReactNativeHost } = require ( "./index" ) ;
88
9- /** @typedef { import( "@expo/config-plugins").ExportedConfig } ExportedConfig */
9+ /** @import { ExportedConfig } from "@expo/config-plugins" */
1010
1111const NAME = "react-native-reanimated" ;
1212
@@ -90,6 +90,13 @@ function installerFor(version, indent = " ") {
9090 * @returns {ExportedConfig } Modified config
9191 */
9292function withReanimatedExecutor ( config ) {
93+ // As of 3.4.0, manual initialization is no longer necessary:
94+ // https://github.com/software-mansion/react-native-reanimated/commit/6f19a367f4939cbbc82f3de6668fd896c695a2ac
95+ const reanimated = getPackageVersion ( "react-native-reanimated" ) ;
96+ if ( toVersionNumber ( reanimated ) >= v ( 3 , 4 , 0 ) ) {
97+ return config ;
98+ }
99+
93100 return withReactNativeHost ( config , ( config ) => {
94101 if ( config . modResults . language !== "objcpp" ) {
95102 throw new Error (
You can’t perform that action at this time.
0 commit comments