【发布时间】:2022-11-08 16:31:55
【问题描述】:
i install react navigation version 6 and i want to use drawer navigation in project
for that install all packages of drawer navigation and make changes in
babel.congile file = plugins: ["react-native-reanimated/plugin"],
Second change in MainActivity.java file
“导入android.os.Bundle;”
“导入 com.facebook.react.bridge.JSIModulePackage” “导入 com.swmansion.reanimated.ReanimatedJSIModulePackage”
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(null);
}
@Override
protected JSIModulePackage getJSIModulePackage() {
return new ReanimatedJSIModulePackage();
}
}
also i changes the andrion app buid.gradlew
project.ext.react = [
enableHermes: true, // clean and rebuild if changing
]
当删除所有这些更改时,Project buid 成功并运行
when i use the JS Module Packages then i face the above error
so My React native version 0.67
so any body can helper
【问题讨论】:
标签: react-native