react-native-preference
react-native-preference copied to clipboard
Attempt to invoke virtual method ' int java.util.ArrayList.size()' on a null object reference
When I try to set value into Preference( Preference.set('is_login', 'true') ) This error shown on the device screen.
Getting same issue :-
"react-native": 0.63.4, "react-native-preference": "^2.2.1",
Please let me know how can i fix this issue
getting same issue on android only.
"react-native": "^0.63.4"
"react-native-preference": "^2.2.1"
Solution that work for me: Preference.setWhiteList([]);
before you do any set. this is for android, on ios all is good for me. do it one time. :)
have answer yet?
Any fix available for this issue?
getting same issue on android only.
"react-native": "^0.63.4"
"react-native-preference": "^2.2.1"
Solution that work for me:
Preference.setWhiteList([]);
before you do any set. this is for android, on ios all is good for me. do it one time. :)
Can you please provide us with an example?
getting same issue on android only.
"react-native": "^0.63.4"
"react-native-preference": "^2.2.1"
Solution that work for me:
Preference.setWhiteList([]);
before you do any set. this is for android, on ios all is good for me. do it one time. :)
Solved the issue for me! Of course this is just a patch over this bug, but at least calling the setWhiteList method fixed this issue.
getting same issue on android only.
"react-native": "^0.63.4"
"react-native-preference": "^2.2.1"
Solution that work for me:
Preference.setWhiteList([]);
before you do any set. this is for android, on ios all is good for me. do it one time. :)
Thanks, This worked for me !!