Skip to content

Commit

Permalink
Updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnarkhede committed Dec 23, 2019
1 parent 4d2f720 commit 84a5436
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ yarn add stream-chat-expo
yarn add @react-native-community/netinfo
```

Please check [Example](https://github.com/GetStream/stream-chat-react-native/blob/master/examples/one/App.js) to see usage of the components.
Please check [Example](https://github.com/GetStream/stream-chat-react-native/blob/master/examples/ExpoMessaging/App.js) to see usage of the components.

OR you can swap [this file](https://github.com/GetStream/stream-chat-react-native/blob/master/examples/one/App.js) for your `App.js` in the root folder with additional following steps:
OR you can swap [this file](https://github.com/GetStream/stream-chat-react-native/blob/master/examples/ExpoMessaging/App.js) for your `App.js` in the root folder with additional following steps:

```bash
yarn add react-navigation
yarn add react-navigation@3.2.1 react-native-gesture-handler react-native-reanimated
```

and finally
Expand Down Expand Up @@ -151,7 +151,7 @@ react-native link react-native-document-picker

```

Please check [Example](https://github.com/GetStream/stream-chat-react-native/blob/master/examples/two/App.js) to see usage of components.
Please check [Example](https://github.com/GetStream/stream-chat-react-native/blob/master/examples/NativeMessaging/App.js) to see usage of components.

OR you can swap this file for your `App.js` in root folder with additional following steps:

Expand Down Expand Up @@ -189,7 +189,7 @@ Just to be sure, please verify you are using appropriate version of following pa

- react-native-image-picker : https://github.com/react-native-community/react-native-image-picker#react-native-compatibility

Please check [Example](https://github.com/GetStream/stream-chat-react-native/blob/master/examples/two/App.js) to see usage of components.
Please check [Example](https://github.com/GetStream/stream-chat-react-native/blob/master/examples/NativeMessaging/App.js) to see usage of components.

OR you can swap this file for your `App.js` in root folder with additional following steps:

Expand Down Expand Up @@ -253,7 +253,7 @@ In current context, dependencies such as `react-native-document-picker` and (if
1. When you execute `react-native run-ios` for the first time, it starts a metro bundler in parallel. It can result into some errors, since build process isn't complete yet. Try the following to fix this:
1. Close/stop the metro bundler process.
2. Let the build process finish completely, it can take usually around 2-3 minutes for the first time.
3. Start the metro bundler manually by executing `yarn start` inside `stream-chat-react-native/examples/two` directory.
3. Start the metro bundler manually by executing `yarn start` inside `stream-chat-react-native/examples/NativeMessaging` directory.
2. When you execute `react-native run-android`, you may (not necessarily) run into following error:

```ERROR
Expand Down Expand Up @@ -282,9 +282,9 @@ In current context, dependencies such as `react-native-document-picker` and (if

To resolve this, do the following

1. Craete a file named `local.properties` inside `stream-chat-react-native/examples/two/android` directory
1. Craete a file named `local.properties` inside `stream-chat-react-native/examples/NativeMessaging/android` directory
2. Put the this line in that file. Make sure sdk path is correctly mentioned as per your system:
```
sdk.dir=/Users/{user_name}/Library/Android/sdk/
```
3. Rerun `react-native run-android` in `stream-chat-react-native/examples/two` directory
3. Rerun `react-native run-android` in `stream-chat-react-native/examples/NativeMessaging` directory
2 changes: 1 addition & 1 deletion examples/ExpoMessaging/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const theme = {
`,
},
};


const filters = { type: 'messaging' };
const sort = { last_message_at: -1 };
Expand Down

0 comments on commit 84a5436

Please sign in to comment.