Comments (1)
@melihmucuk Thanks for pointing this out.
Unfortunately, it looks like NSDictionary
(which is what a JavaScript object maps to) doesn't support Null
values (at least when serializing into NSUserDefaults): https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSUserDefaults_Class/#//apple_ref/occ/instm/NSUserDefaults/setObject:forKey:
Of course, I'm sure you solved this by passing in an empty string to those values. I think the proper thing here would be to raise an exception explaining how null values can't be passed in but empty strings, objects, or arrays should be used instead.
I'll try to add this error shortly.
from react-native-userdefaults-ios.
Related Issues (11)
- undefined is not an object (evaluating 'UserDefaults.setObjectForKey') HOT 5
- Support for suites HOT 1
- Test
- Test
- Getting array of objects
- Missing folder react-native-userdefaults-ios/Pods/
- Error building
- #import "RCTBridgeModule.h" can
- #import "RCTBridgeModule.h" can't be found HOT 15
- "RCTBridgeModule.h" file not found! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-userdefaults-ios.