dsibiski / react-native-userdefaults-ios Goto Github PK
View Code? Open in Web Editor NEWReact Native Module for NSUserDefaults
Home Page: https://www.npmjs.com/package/react-native-userdefaults-ios
React Native Module for NSUserDefaults
Home Page: https://www.npmjs.com/package/react-native-userdefaults-ios
node_modules/react-native-userdefaults-ios/Pods/Target Support Files/Pods-RNUserDefaultsIOSTests/Pods-RNUserDefaultsIOSTests.debug.xcconfig: unable to open file (in target "RNUserDefaultsIOSTests" in project "RNUserDefaultsIOS") (in target 'RNUserDefaultsIOSTests')
test
When using .arrayForKey('keyForMyArray')
I get an array with the correct length, but the entries are all null
.
Is it possible to get an array of objects?
If there is null value exist in object, I cant save it.
"user": {
"Id": "fmkmfkmfsmmfkkm4r43r",
"phoneNumber": "444543543543",
"password": null,
"name": "name",
"profilePicture": null,
"email": "[email protected]",
}
UD.setObjectForKey(this.state.user, 'user');
ERROR on Xcode: Property list invalid for format: 200 (property lists cannot contain objects of type 'CFNull')
On line 7 of RNUserDefaultsIOS.js,
var _setObjectForKey = Promise.promisify(UserDefaults.setObjectForKey);
it seems UserDefaults was not set because there is no RNUserDefaultsIOS inside NativeModules. (line 5).
I followed the installation README very closely I don't think it did anything wrong. Any ideas? Thanks!
test
What i am using : {
"react": "16.6.1",
"react-native": "0.57.7",
}
i was doing what tutorial said, step by step, what should i do now.
error what i got
node_modules/react-native-userdefaults-ios/Pods/Target Support Files/Pods-RNUserDefaultsIOSTests/Pods-RNUserDefaultsIOSTests.debug.xcconfig: unable to open file (in target "RNUserDefaultsIOSTests" in project "RNUserDefaultsIOS") (in target 'RNUserDefaultsIOSTests')
and
node_modules/react-native-userdefaults-ios/Pods/Target Support Files/Pods-RNUserDefaultsIOSTests/Pods-RNUserDefaultsIOSTests.debug.xcconfig: unable to open file (in target "RNUserDefaultsIOSTests" in project "RNUserDefaultsIOS") (in target 'RNUserDefaultsIOSTests')
and
node_modules/react-native-userdefaults-ios/Pods/Target Support Files/Pods-RNUserDefaultsIOSTests/Pods-RNUserDefaultsIOSTests.debug.xcconfig: unable to open file (in target "RNUserDefaultsIOSTests" in project "RNUserDefaultsIOS") (in target 'RNUserDefaultsIOSTests')
and
node_modules/react-native-userdefaults-ios/Pods/Target Support Files/Pods-RNUserDefaultsIOSTests/Pods-RNUserDefaultsIOSTests.debug.xcconfig: unable to open file (in target "RNUserDefaultsIOSTests" in project "RNUserDefaultsIOS") (in target 'RNUserDefaultsIOSTests')
Good efforts @dsibiski , One feature missing here is suites,
[[NSUserDefaults alloc] initWithSuiteName:kSuiteName];
It would be great if we can integrate suites into this library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.