Permalink
Browse files

Add .watchmanconfig and README notes for local development

  • Loading branch information...
cooperka committed Jul 16, 2017
1 parent 8d5010f commit 08cc6fc03c5cfd79462851028647307aa1e79e25
Showing with 21 additions and 0 deletions.
  1. +7 −0 .watchmanconfig
  2. +14 −0 README.md
View
@@ -0,0 +1,7 @@
{
"ignore_dirs": [
".git",
"node_modules",
"example"
]
}
View
@@ -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)

0 comments on commit 08cc6fc

Please sign in to comment.