Some native_dependencies from a custom pluggable native widget are not being included by Build Native Mobile App in package.json
0
I am using Mendix 10.23.0 which is including nativeTemplate 14.1.2. In a custom pluggable widget I have a dependency on @react-native-community/slider : 4.4.2, but it is not being included in the generated package.json. If I manually add it, then I can build and run the widget in an iOS app. Why would Build Native Mobile App omit this dependency? Is there a better alternative? (like using the Mendix slider, which I don't actually know how to do; help appreciated on that) . I have noticed that if the widget is not used, then the native dependencies are not included, but that is not what is happening. Part of the widget is functional in this case, and if I manually add this dependency to the package.json file, then the widget functions properly. However, I also have another custom pluggable native widget experiencing a similar problem where the some of the dependencies are not showing up in the package.json, so it would be helpful to learn how to identify the root cause, of this type of issue. I do not see any clues in the Build Native Mobile App log files. (I am using Studio Pro 10.23.0, which was not an option in the pull-down when creating this post)
asked
Nancy Nunes
1 answers
0
Did you create release builds of your pluggable widgets? When you do npm run release, a release build of your widget is created in the dist folder for your widget release. The release build process includes a dependency JSON file in the widget MPK. The native builder picks up dependencies from these files.