Skip to content

Commit 40a7401

Browse files
author
Emiliano Botti
committed
Adds changes to npmignore. Renames package to org-scoped. Changes on Readme.
1 parent 251e526 commit 40a7401

File tree

15 files changed

+43
-25
lines changed

15 files changed

+43
-25
lines changed

.npmignore

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
11
example/
2-
.babelrc
2+
.babelrc
3+
4+
build/
5+
node_modules
6+
.idea
7+
_book
8+
__tests__
9+
.all-contributorsrc
10+
.github
11+
.settings
12+
.project
13+
.prettierrc
14+
.prettierignore
15+
.eslintrc
16+
.eslintignore
17+
.npmrc
18+
.vsconfig
19+
.gradle

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This library includes:
1111

1212
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
1313
[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors)
14-
[![NPM Version](https://img.shields.io/npm/v/react-native-line-sdk.svg?style=flat-square)](https://www.npmjs.com/package/react-native-line-sdk)
14+
[![NPM Version](https://img.shields.io/npm/v/@xmartlabs/react-native-line.svg?style=flat-square)](https://www.npmjs.com/package/@xmartlabs/react-native-line)
1515

1616
## Requirements
1717

@@ -23,7 +23,7 @@ This library includes:
2323
First, install the npm package with yarn. _Autolink_ is automatic.
2424

2525
```bash
26-
yarn add react-native-line-sdk
26+
yarn add @xmartlabs/react-native-line
2727
```
2828

2929
### iOS Setup
@@ -73,7 +73,7 @@ Don't forget to add `application` function, as line's instructions indicate.
7373
First, require the `LineLogin` module:
7474

7575
```javascript
76-
import LineLogin from 'react-native-line-sdk'
76+
import LineLogin from '@xmartlabs/react-native-line'
7777
```
7878

7979
Then, you can start using all the functions that are available:
@@ -277,7 +277,7 @@ The following objects are returned on the methods described above:
277277

278278
## Example
279279

280-
If you want to see `react-native-line-sdk` in action, just move into the [example](/example) folder and run `yarn ios`/`yarn android`. By seeing its source code, you will have a better understanding of the library usage.
280+
If you want to see `@xmartlabs/react-native-line` in action, just move into the [example](/example) folder and run `yarn ios`/`yarn android`. By seeing its source code, you will have a better understanding of the library usage.
281281

282282
## Contributors
283283

@@ -301,4 +301,4 @@ If you want to see `react-native-line-sdk` in action, just move into the [exampl
301301

302302
## License
303303

304-
`react-native-line-sdk` is available under the MIT license. See the LICENCE file for more info.
304+
`@xmartlabs/react-native-line` is available under the MIT license. See the LICENCE file for more info.

example/ios/Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ PODS:
226226
- React
227227
- RNGestureHandler (1.5.2):
228228
- React
229-
- RNLine (2.0.4):
229+
- RNLine (2.0.0):
230230
- LineSDKSwift (~> 5.0)
231231
- React
232232
- RNReanimated (1.4.0):
@@ -268,7 +268,7 @@ DEPENDENCIES:
268268
- ReactNativeLocalization (from `../node_modules/react-native-localization`)
269269
- "RNCAsyncStorage (from `../node_modules/@react-native-community/async-storage`)"
270270
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
271-
- RNLine (from `../node_modules/react-native-line`)
271+
- "RNLine (from `../node_modules/@xmartlabs/react-native-line`)"
272272
- RNReanimated (from `../node_modules/react-native-reanimated`)
273273
- RNScreens (from `../node_modules/react-native-screens`)
274274
- RNSVG (from `../node_modules/react-native-svg`)
@@ -335,7 +335,7 @@ EXTERNAL SOURCES:
335335
RNGestureHandler:
336336
:path: "../node_modules/react-native-gesture-handler"
337337
RNLine:
338-
:path: "../node_modules/react-native-line"
338+
:path: "../node_modules/@xmartlabs/react-native-line"
339339
RNReanimated:
340340
:path: "../node_modules/react-native-reanimated"
341341
RNScreens:
@@ -375,7 +375,7 @@ SPEC CHECKSUMS:
375375
ReactNativeLocalization: dbb269b27d8a84bb22b9c2cdec38ba780b51dd72
376376
RNCAsyncStorage: 44395cb9c7c1523104c2b499eb426ef7aff82bca
377377
RNGestureHandler: 946a7691e41df61e2c4b1884deab41a4cdc3afff
378-
RNLine: 8ef3a20ae8f36b1f40debdd3bb714649c73b8857
378+
RNLine: cd30f81208647017750cbfcf0223f57946652efe
379379
RNReanimated: b2ab0b693dddd2339bd2f300e770f6302d2e960c
380380
RNScreens: 36f8c83e5e23b6bfd5b912148453d81e335573eb
381381
RNSVG: ce9d996113475209013317e48b05c21ee988d42e

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"react-navigation": "^4.0.10",
2424
"react-navigation-stack": "^1.9.3",
2525
"react-navigation-tabs": "^2.5.6",
26-
"react-native-line": "^2.0.0"
26+
"@xmartlabs/react-native-line": "^2.0.0"
2727
},
2828
"devDependencies": {
2929
"@babel/core": "^7.6.2",

example/src/context/auth/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
AuthClearError,
77
AuthClearState,
88
} from './types'
9-
import { LoginResult } from 'react-native-line'
9+
import { LoginResult } from '@xmartlabs/react-native-line'
1010

1111
export const clearError = (): AuthClearError => ({
1212
type: actionTypes.AUTH_CLEAR_ERROR,

example/src/context/auth/provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
authClearState,
1010
clearError,
1111
} from './actions'
12-
import { LoginResult } from 'react-native-line'
12+
import { LoginResult } from '@xmartlabs/react-native-line'
1313
import { AuthState, AuthActions } from './types'
1414
import AsyncStorage from '@react-native-community/async-storage'
1515
import { PersistedKeys } from 'src/context/persistedKeys'

example/src/context/auth/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LoginResult } from 'react-native-line'
1+
import { LoginResult } from '@xmartlabs/react-native-line'
22
import { actionTypes } from './actionTypes'
33

44
export interface AuthState {

example/src/scenes/Authenticated/API/GetCurrentAccessToken/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Line from 'react-native-line'
1+
import Line from '@xmartlabs/react-native-line'
22
import { InfoList } from 'src/scenes/Authenticated/API/InfoList'
33

44
export const GetCurrentAccessToken = () =>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Line from 'react-native-line'
1+
import Line from '@xmartlabs/react-native-line'
22
import { InfoList } from 'src/scenes/Authenticated/API/InfoList'
33

44
export const GetProfile = () => InfoList(Line.getProfile, 'User')
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Line from 'react-native-line'
1+
import Line from '@xmartlabs/react-native-line'
22
import { InfoList } from 'src/scenes/Authenticated/API/InfoList'
33

44
export const RefreshToken = () => InfoList(Line.refreshToken, 'Refresh Token')

0 commit comments

Comments
 (0)