Skip to content

Commit

Permalink
鈾伙笍 giant restructure, added working native example
Browse files Browse the repository at this point in the history
  • Loading branch information
mayteio committed Aug 19, 2020
1 parent 1180d5b commit 1fb455b
Show file tree
Hide file tree
Showing 138 changed files with 7,267 additions and 17,053 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ test("should show a title when it receives a title event", async () => {

## React Native

This package comes with React Native support. Import your `PusherProvider` from `@harelpls/use-pusher/react-native` instead of the default `@harelpls/use-pusher`. All exports (except testing utils) are re-exported from there.
This package comes with React Native support. Import your `PusherProvider` from `@harelpls/use-pusher/react-native` instead of the default `@harelpls/use-pusher`. All exports are re-exported from there.

Ensure you add the netinfo package to your project too: [`@react-native-community/netinfo`](https://github.com/react-native-community/react-native-netinfo).

```ts
import { PusherProvider, useChannel } from "@harelpls/use-pusher/react-native";
Expand Down

0 comments on commit 1fb455b

Please sign in to comment.