Commit 97012f7
refactor: use ably/react hooks in React Native push guide
- Wrap app in AblyProvider + ChannelProvider
- Split App into App (providers) and PushScreen (hooks)
- Replace manual useEffect channel subscription with useChannel
- Replace module-scope realtime client with useAbly() in PushScreen
- Update ably channels publish CLI to ably push publish --channel
- Remove scrollViewRef auto-scroll for brevity
- Rename appendLog to log
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent cc736c9 commit 97012f7
File tree
3 files changed
+105
-124
lines changed- src
- images/content/screenshots/getting-started
- pages/docs/push/getting-started
3 files changed
+105
-124
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
| |||
0 commit comments