Skip to content

Commit

Permalink
Merge pull request #12 from TranzerDev/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
kamaal111 authored Jul 7, 2021
2 parents 2696cb2 + 182767f commit 34e9235
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 24 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# react-native-user-defaults

An wrapper voor iOS UserDefaults
An wrapper for iOS UserDefaults

- [Installation](#Installation)
- [Usage](#Usage)
Expand All @@ -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
Expand All @@ -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`)

Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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`)
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
3 changes: 2 additions & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
10 changes: 5 additions & 5 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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 <[email protected]> (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/"
},
Expand Down
2 changes: 1 addition & 1 deletion react-native-userdefaults.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 34e9235

Please sign in to comment.