File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff 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
1531821. Import the ` Line` module:
You can’t perform that action at this time.
0 commit comments