readme: how to use with react-native 📝

Hopefully prevents situations like in #56 in the future.

https://github.com/public-transport/hafas-client/issues/56#issuecomment-399915315
This commit is contained in:
Jannis R 2018-06-25 13:12:14 +02:00
parent 3c00ed29d0
commit 6d9ffeda94
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -30,6 +30,10 @@ There's [a company called HaCon](http://hacon.de) that sells [a public transport
npm install hafas-client
```
### with [react-native](https://facebook.github.io/react-native/)
`hafas-client` as well its dependencies use [Node-builtin modules](https://nodejs.org/dist/latest/docs/api/) and [Node globals](https://nodejs.org/api/globals.html). To be able to use it within react-native, follow [the instructions at `node-libs-react-native`](https://github.com/parshap/node-libs-react-native/blob/master/README.md#usage).
## API