Skip to content

Commit 660045f

Browse files
committed
chore: update Readme
1 parent 993b4de commit 660045f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Line SDK wrapper for React Native 🚀
113113
</details>
114114

115115
<details>
116-
<summary>@xmartlabs/react-native-line v4</summary>
116+
<summary>@xmartlabs/react-native-line v5</summary>
117117

118118
```objectivec
119119
#import "react_native_line-Swift.h"
@@ -150,24 +150,24 @@ Line SDK wrapper for React Native 🚀
150150

151151
## Usage
152152

153-
1. Import the `LineLogin` module:
153+
1. Import the `Line` module:
154154

155155
```typescript
156-
import LineLogin from '@xmartlabs/react-native-line'
156+
import Line from '@xmartlabs/react-native-line'
157157
```
158158

159159
2. Initialize the module with the `setup` method:
160160

161161
```typescript
162162
useEffect(() => {
163-
LineLogin.setup({ channelId: 'YOUR_CHANNEL_ID' })
163+
Line.setup({ channelId: 'YOUR_CHANNEL_ID' })
164164
}, [])
165165
```
166166

167167
3. Login with the `login` method:
168168

169169
```typescript
170-
LineLogin.login({})
170+
Line.login({})
171171
```
172172

173173
## API

0 commit comments

Comments
 (0)