diff --git a/README.md b/README.md index 54d189f..a9afb69 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # react-native-user-defaults -An wrapper voor iOS UserDefaults +An wrapper for iOS UserDefaults - [Installation](#Installation) - [Usage](#Usage) @@ -13,13 +13,13 @@ An wrapper voor iOS UserDefaults Using either Yarn: ```bash -yarn add @kamaal111/react-native-user-defaults +yarn add @tranzerdev/react-native-user-defaults ``` Or npm: ```bash -npm install @kamaal111/react-native-user-defaults +npm install @tranzerdev/react-native-user-defaults ``` ### Link @@ -39,13 +39,13 @@ $ cd ios && pod install The following steps are only necessary if you are working with a version of React Native lower than 0.60: ```bash -$ react-native link @kamaal111/react-native-user-defaults +$ react-native link @tranzerdev/react-native-user-defaults ``` #### iOS 1. In Xcode in the project navigator, right click `Libraries` > `Add Files to [your project's name]` -2. Go to `node_modules` > `@kamaal111/react-native-user-defaults` and add `RNUserdefaults.xcodeproj` +2. Go to `node_modules` > `@tranzerdev/react-native-user-defaults` and add `RNUserdefaults.xcodeproj` 3. In XCode, in the project navigator, select your project. Add `libRNUserdefaults.a` to your project's `BuildPhases` > `Link Binary With Libraries` 4. Run your project (`cmd+R`) @@ -55,10 +55,10 @@ Not needed because this packages is not implemented to be used for Android (yet! ## Usage -Import RNUserdefaults from `@kamaal111/react-native-user-defaults`: +Import RNUserdefaults from `@tranzerdev/react-native-user-defaults`: ```javascript -import RNUserdefaults from '@kamaal111/react-native-user-defaults'; +import RNUserdefaults from '@tranzerdev/react-native-user-defaults'; ``` ### Set value in user defaults diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index ea9a5be..6f3fe32 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -185,7 +185,7 @@ PODS: - React-cxxreact (= 0.63.4) - React-jsi (= 0.63.4) - React-jsinspector (0.63.4) - - react-native-userdefaults (0.1.0): + - react-native-userdefaults (0.1.5): - React-Core - React-RCTActionSheet (0.63.4): - React-Core/RCTActionSheetHeaders (= 0.63.4) @@ -267,7 +267,7 @@ DEPENDENCIES: - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) - - "react-native-userdefaults (from `../node_modules/@kamaal111/react-native-user-defaults`)" + - "react-native-userdefaults (from `../node_modules/@tranzerdev/react-native-user-defaults`)" - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) @@ -316,7 +316,7 @@ EXTERNAL SOURCES: React-jsinspector: :path: "../node_modules/react-native/ReactCommon/jsinspector" react-native-userdefaults: - :path: "../node_modules/@kamaal111/react-native-user-defaults" + :path: "../node_modules/@tranzerdev/react-native-user-defaults" React-RCTActionSheet: :path: "../node_modules/react-native/Libraries/ActionSheetIOS" React-RCTAnimation: @@ -357,7 +357,7 @@ SPEC CHECKSUMS: React-jsi: a0418934cf48f25b485631deb27c64dc40fb4c31 React-jsiexecutor: 93bd528844ad21dc07aab1c67cb10abae6df6949 React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a - react-native-userdefaults: e7e6672f10ec3e932af9b392d35d885f43fafedb + react-native-userdefaults: b9a9bc45cf9c0c9d54c2048d7c1e239130a966aa React-RCTActionSheet: 89a0ca9f4a06c1f93c26067af074ccdce0f40336 React-RCTAnimation: 1bde3ecc0c104c55df246eda516e0deb03c4e49b React-RCTBlob: a97d378b527740cc667e03ebfa183a75231ab0f0 diff --git a/example/package.json b/example/package.json index fc1a2f3..f2bcb2e 100644 --- a/example/package.json +++ b/example/package.json @@ -9,7 +9,7 @@ "start": "react-native start" }, "dependencies": { - "@kamaal111/react-native-user-defaults": "^0.1.0", + "@tranzerdev/react-native-user-defaults": "^0.1.5", "react": "16.13.1", "react-native": "0.63.4" }, diff --git a/example/src/App.tsx b/example/src/App.tsx index 527cbda..d0cf78f 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -1,7 +1,8 @@ import * as React from 'react'; import { StyleSheet, View, Button } from 'react-native'; -import RNUserdefaults from '@kamaal111/react-native-user-defaults'; +// @ts-ignore +import RNUserdefaults from '@tranzerdev/react-native-user-defaults'; export default function App() { return ( diff --git a/example/yarn.lock b/example/yarn.lock index 5fa75d9..968082e 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -732,11 +732,6 @@ "@types/yargs" "^15.0.0" chalk "^3.0.0" -"@kamaal111/react-native-user-defaults@^0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@kamaal111/react-native-user-defaults/-/react-native-user-defaults-0.1.0.tgz#273dfd5179cb1ba5ad77b9a623c44762236e550e" - integrity sha512-6svkqv79x6Qj0IbsZGvyyLChYnCrKsWOov1v3qB7avcRa3V8rLs1Av8KRSxgAyKTZ7qTVjkDNzzmdEKWQ1443w== - "@react-native-community/cli-debugger-ui@^4.13.1": version "4.13.1" resolved "https://registry.yarnpkg.com/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-4.13.1.tgz#07de6d4dab80ec49231de1f1fbf658b4ad39b32c" @@ -857,6 +852,11 @@ sudo-prompt "^9.0.0" wcwidth "^1.0.1" +"@tranzerdev/react-native-user-defaults@^0.1.6": + version "0.1.5" + resolved "https://registry.yarnpkg.com/@tranzerdev/react-native-user-defaults/-/react-native-user-defaults-0.1.5.tgz#dd54f0ffbfbbf7a641a07e6889b70f27939f3a0c" + integrity sha512-7d6FB22XsnJPCkd8cxgpKSaL0VhYBDzCwrcWIyp1Bq8qtKNQzWmDRHM2/8GJPOvve4FMagotBUanH4Fy+0qaig== + "@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0": version "2.0.3" resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762" diff --git a/package.json b/package.json index 1822a46..d52b6aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@kamaal111/react-native-user-defaults", - "version": "0.1.4", + "name": "@tranzerdev/react-native-user-defaults", + "version": "0.1.6", "description": "An wrapper for iOS UserDefaults", "main": "lib/commonjs/index", "module": "lib/module/index", @@ -38,14 +38,14 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/kamaal111/react-native-userdefaults.git" + "url": "git+https://github.com/tranzerdev/react-native-userdefaults.git" }, "author": "Kamaal111 (https://github.com/kamaal111)", "license": "MIT", "bugs": { - "url": "https://github.com/kamaal111/react-native-userdefaults/issues" + "url": "https://github.com/tranzerdev/react-native-userdefaults/issues" }, - "homepage": "https://github.com/kamaal111/react-native-userdefaults#readme", + "homepage": "https://github.com/tranzerdev/react-native-userdefaults#readme", "publishConfig": { "registry": "https://registry.npmjs.org/" }, diff --git a/react-native-userdefaults.podspec b/react-native-userdefaults.podspec index 337c982..9a19a45 100644 --- a/react-native-userdefaults.podspec +++ b/react-native-userdefaults.podspec @@ -11,7 +11,7 @@ Pod::Spec.new do |s| s.authors = package["author"] s.platforms = { :ios => "10.0" } - s.source = { :git => "https://github.com/kamaal111/react-native-userdefaults.git", :tag => "#{s.version}" } + s.source = { :git => "https://github.com/tranzerdev/react-native-userdefaults.git", :tag => "#{s.version}" } s.source_files = "ios/**/*.{h,m,swift}"