Commit Graph

104 Commits

Author SHA1 Message Date
Marcos Rodriguez Velez
6338a1f123 Update RNDefaultPreferenceModule.java 2024-11-20 00:27:27 -04:00
Marcos Rodriguez Velez
258a3f07a3 Update react-native-default-preference.js 2024-11-19 23:06:51 -04:00
Marcos Rodriguez Velez
e55c857b7d Update react-native-default-preference.js 2024-11-19 22:43:18 -04:00
Marcos Rodriguez Velez
de95729a49 Update jest.config.js 2024-11-19 22:41:35 -04:00
Marcos Rodriguez Velez
db5bdbf3b0 Get 2024-11-19 22:25:32 -04:00
Marcos Rodriguez Velez
20c807a49c test 2024-11-19 22:16:26 -04:00
Marcos Rodriguez Velez
018e4dc39f Static 2024-11-19 22:00:23 -04:00
Marcos Rodriguez Velez
55e6038026 Hook 2024-11-19 21:42:09 -04:00
Marcos Rodriguez Velez
766f5a27f4 Fix for android 2024-11-19 21:32:33 -04:00
Marcos Rodriguez Velez
c60bec3b17 Accept bools. Add tests. Use datastore 2024-11-19 21:25:16 -04:00
Marcos Rodriguez Velez
1faeb7458b work 2024-11-07 22:30:06 -04:00
Marcos Rodriguez Velez
fe0ceea772 work 2024-11-07 22:19:10 -04:00
Marcos Rodriguez Velez
fc2a9bd3e7 Update RNDefaultPreference.m 2024-11-07 22:16:40 -04:00
Marcos Rodriguez Velez
3d912b5472 Update index.ts 2024-11-07 22:15:13 -04:00
Marcos Rodriguez Velez
d7d79748e2 work 2024-11-07 22:13:55 -04:00
Marcos Rodriguez Velez
568209258f FIxes 2024-11-07 21:54:05 -04:00
Marcos Rodriguez Velez
6721d19430 Update package 2024-11-07 21:45:15 -04:00
Kevin Leung
16c1beb2dd
Merge pull request #71 from cgoldsby/CleanUpNSLog
Removing NSLog statements to reduce Xcode log clutter
2024-04-08 14:03:51 +10:00
Chris Goldsby
e0a5675cd7
Remove NSLogs 2024-03-28 08:57:31 -04:00
Kevin Leung
9176021cf0 1.4.4 2022-04-07 22:15:07 +08:00
Kevin Leung
11bff5eb05
Merge pull request #65 from msftenhanceprovenance/patch-1
Update package.json to include the repository
2021-08-25 17:05:01 +08:00
Microsoft Provenance Contributions
05c53de380
Update package.json to include the repository
NOTE: This is not a bot. This change was made by and comments will be reviewed by humans. We are using this service account to be able to track the overall progress.

With the rise in supply chain attacks and OSS dependencies being used as a attack vector, Microsoft is working with our ecosystem partners, such as the Linux Foundation's OpenSSF, to enable OSS consumers to track packages back to their public sources. 

We've identified that the following packages published to NPM do not report where sources can be found, typically accomplished by including a link to your GitHub repository in your package.json REPOSITORY field. This PR was created to add this value, ensuring future releases will include this provenance information.

If you do not want us to create such PRs against your GitHub repositories, or wish to provide any other feedback, please comment on this PR. 

Published NPM packages with repository information:
• react-native-default-preference
2021-08-25 16:58:32 +08:00
Kevin Leung
a54fe0706d
Merge pull request #64 from trevorah/master
Update types as `get` will return null if a key is not set on android
2021-05-27 03:01:00 +08:00
Andy Trevorah
e8be191020
Update types as get will return null if a key is not set on android 2021-05-26 09:53:52 +01:00
Kevin Leung
cf54f15b07
Merge pull request #63 from trevorah/master
Update types as `get` will return undefined if a key is not set on ios
2021-05-25 19:35:24 +08:00
Andy Trevorah
ee1a2297dc
Update types as get will return undefined if a key is not set on ios 2021-05-25 12:13:27 +01:00
Kevin Leung
4cf3a8cb3e
Merge pull request #62 from magrinj/patch-1 2021-05-23 11:50:09 +08:00
Jérémy M
e8e3e99ba9
fix: use default shared preferences name on android
On iOS the default behaviour is returning default NSUserDefaults, to keep iOS and Android working the same I set the android default preferences instead of 'react-native'

Breaking change:
Current user that are using 'react-native' preferencesName need to call `setName` to avoid loosing their data.
2021-05-21 16:24:27 -04:00
Kevin Leung
4f6953f708
Merge pull request #60 from erkie/patch-1
Fix TypeScript types: getMultiple returns an array, not an object
2021-02-24 00:24:29 +00:00
Erik Rothoff Andersson
b61247c161
Fix TypeScript types: getMultiple returns an array, not an object 2021-02-18 21:37:47 +01:00
Kevin Leung
f08c8aaf24
Merge pull request #56 from afestein/patch-1 2020-12-08 09:13:55 +08:00
Adrian Stein
4b6c9f9836
Fix Xcode 12 compatibility
Compilation fails on Xcode 12 with `Undefined symbols for architecture` errors, due to the React dependency in the podspec.

See the react-native issue here - https://github.com/facebook/react-native/issues/29633#issuecomment-694187116
2020-12-08 10:53:40 +10:00
Marcel Kalveram
977c9853e3 1.4.3 2020-05-16 16:36:46 +02:00
Marcel Kalveram
18a7e50e81 Merge branch 'master' of github.com:kevinresol/react-native-default-preference
* 'master' of github.com:kevinresol/react-native-default-preference:
  JSON is a notation, an example of serialization
2020-05-16 16:36:18 +02:00
Marcel Kalveram
d9bcc107ff add flowtype types, format typescript types 2020-05-16 16:36:03 +02:00
Kevin Leung
185eccae3d
JSON is a notation, an example of serialization 2020-03-23 10:23:39 +08:00
Marcel Kalveram
9446601d8f bump version to 1.4.2 2020-03-17 13:49:15 +01:00
marcelkalveram
7331a680fd
Merge pull request #51 from Nekith/master
Add TypeScript typings
2020-01-10 11:06:50 +02:00
Valérian Cubero
aa96f37648 TypeScript typings: getMultiple now return RNDefaultPreferenceKeys 2020-01-09 18:57:03 +01:00
Valérian Cubero
65d07eeaaa TypeScript typings: getAll now return RNDefaultPreferenceKeys 2020-01-09 14:36:32 +01:00
Valérian Cubero
d7770e4cf4 add typescript index file 2020-01-07 11:38:38 +01:00
Kevin Leung
f540bd21c4
Merge pull request #46 from Tagir-A/patch-1
Add support for tvOS
2019-10-23 01:45:50 +08:00
Tagir Almasov
4e025537eb
Add support for tvOS
This library is very useful for tvOS, since it doesn't support persistent storage, except for UserDefaults. 
I've checked and it works completely fine with my project. So, the only thing necessary is to add tvOS to platforms.
2019-10-15 12:19:49 +02:00
Marcel Kalveram
96764cb495 bump version to 1.4.1 2019-10-10 14:20:46 +03:00
marcelkalveram
f2f4767802
Merge pull request #44 from kevinresol/upgrade-gradle
upgrade gradle
2019-10-06 13:14:42 +02:00
Marcel Kalveram
aeb261fe4a upgrade gradle file: remove deprecated buildToolsVersion, use saftExtGet for react-native version 2019-10-06 14:05:45 +03:00
marcelkalveram
86904c33b3
Merge pull request #43 from marcelkalveram/master
Update podspec and header file
2019-09-28 18:00:58 +02:00
Marcel Kalveram
ac5479ea9b Clean up header file 2019-09-28 11:32:35 +02:00
Marcel Kalveram
0430f829d1 Target iOS 9.0 and clean up podspec file 2019-09-28 11:32:22 +02:00
marcelkalveram
777033af78
Update README.md 2019-09-28 11:13:30 +02:00