React Native TurboModuleRegistry.getEnforcing(...) Issue
Issue:
- TurboModuleRegistry.getEnforcing(...): 'LinkingManager' could not be found. Verify that a module by this name is registered in the native binary
- TypeError: undefined is not an object (evaluating '_reactNative.Linking.addEventListener').This error is located at:in ForwardRef(NavigationContainer)
Solution:
The reason to these issues are platform check with '=' and not '===' which results to set the platform to 'ios' and since ios needs LinkingManager which fails to be found in android build and vice versa.
The solution to this is ensure that the platform check is done as Platform.OS === 'android' or Platform.OS === 'ios', doing so gets the check of both the value and type and resolves the above issues.
Stay tuned to my posts and do share your valuable thoughts if any queries or you would like to share anything on this topic in the comment section and please do like and share my post if this was helpful.
Hope this helped you!!
0 Comments