Skip to content

Commit

Permalink
Add .watchmanconfig and README notes for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperka committed Jul 16, 2017
1 parent 8d5010f commit 08cc6fc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ignore_dirs": [
".git",
"node_modules",
"example"
]
}
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,20 @@ If you are using Create React Native App / Expo, no Android specific installatio

- If you plan to use `GiftedChat` inside a `Modal`, see [#200](https://github.com/FaridSafi/react-native-gifted-chat/issues/200).

## Notes for local development

You can use [`wml`](https://github.com/wix/wml) to keep the example app in sync
with any changes you make to the library during development. Steps:

1. Install it: `npm install -g wml`
2. Configure it: `wml add . example/node_modules/react-native-gifted-chat` from the root directory
3. `cd example`
4. `npm start`
5. `wml start` in another terminal window (doesn't matter where)

Note that it's important for `wml start` to come **after** `npm start`, or you'll get `Can't find entry file index.js` errors.
If you have any issues, you can clear your watches using `watchman watch-del-all` and try again.

## License

- [MIT](LICENSE)
Expand Down

0 comments on commit 08cc6fc

Please sign in to comment.