-
-
Notifications
You must be signed in to change notification settings - Fork 25
null is not an object (UIManager$getViewMan.Constants) -Android #19
Comments
what version of react-native are you on? |
react-native: 0.59.8 |
that's it I believe. -export const { Constants } = UIManager.getViewManagerConfig(nativeViewName);
+export const { Constants } = UIManager[nativeViewName]; or even -export const { Constants } = UIManager.getViewManagerConfig(nativeViewName);
+export const { Constants } = {}; |
Okay. I will try it. |
ios has no constants exported. for now. |
my bad, that was a stupid question. |
try this, it's better:
|
reinstall to version |
Not at all. In future releaseד it will have |
please reply that all is working, including #18 |
After I reinstall to version 3.4.5 The error becomes -> null is not an object (evaluating '_ref.Constant') |
I am a bit puzzled. but it is not breaking so. reinstall |
The error still remaining after reinstall to null is not an object (evaluating '_ref.Constants) |
run this, I want to check if it's null.
|
changing to this should work
make sure it does and I'll bump the version |
After Changing it, I received this Is it because I using the Expo? |
Not able to comment it, because of line 121: But after I replace it with It will show another error **I'm not sure that it solved the Constants issue or not. |
RN 0.59 doesn't do automatic linking. |
Is there any way that I can perform the linking in expo without using ejecting to ExpoKit? |
Native modules aren't supported in expo.
|
Did you figure out a way to get it to work in an expo project without ejecting your project? If so, I would greatly appreciate your help. I am getting the same issue |
If you are like me and ended up with 400 ts errors when importing this module in typescript then here is the solution: create a
and in
|
Does this happen on Expo? |
It's not because of expo, I'm getting it now too |
ERROR Invariant Violation: requireNativeComponent: "RNMathView" was not found in the UIManager. any solutions? |
null is not an object (evaluating '_UIManager$getViewMan.Constant)
from line:13-> react-native-math-view/src/android/MathView.tsx
Platform: Android
"react-native-math-view": "^3.4.3",
The text was updated successfully, but these errors were encountered: