readme: how to use with react-native 📝

cherry-picked 6d9ffed from next
This commit is contained in:
Jannis R 2018-06-25 13:12:14 +02:00
parent edab8fe4a9
commit a952b08b76
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 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 ## API