Skip to content

Commit 05577a5

Browse files
committed
chore: add migration guides
1 parent ba9646c commit 05577a5

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,35 @@ Line SDK wrapper for React Native 🚀
148148
</array>
149149
```
150150

151+
## Migration guides
152+
153+
### v3 → v4
154+
155+
1. A `setup` function has been added and needs to be called before using the library.
156+
```typescript
157+
Line.setup({ channelId: 'YOUR_CHANNEL_ID' })
158+
```
159+
160+
2. The `getBotFriendshipStatus` function is now called `getFriendshipStatus`.
161+
162+
3. The `refreshToken` function is now called `refreshAccessToken`.
163+
164+
### v4 → v5
165+
166+
1. The file name in the `AppDelegate` import has changed.
167+
```objectivec
168+
- #import "RNLine-Swift.h"
169+
170+
+ #import "react_native_line-Swift.h"
171+
```
172+
173+
2. The `login` function now expects an empty object as a default value.
174+
```typescript
175+
- Line.login()
176+
177+
+ Line.login({})
178+
```
179+
151180
## Usage
152181

153182
1. Import the `Line` module:

0 commit comments

Comments
 (0)