Skip to content

Commit 7b0bc21

Browse files
committed
Merge branch 'master' of https://github.com/renisalcedo/clarifai-javascript into master
1 parent 75d21f1 commit 7b0bc21

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,24 @@ To start, install the SDK via NPM: `npm install clarifai` and initialize with yo
1313

1414
```js
1515
const Clarifai = require('clarifai');
16+
1617
const app = new Clarifai.App({
1718
apiKey: 'YOUR_API_KEY'
1819
});
19-
2020
```
2121

2222
You can also use the SDK by adding this script to your HTML:
2323

2424
```html
25-
2625
<script type="text/javascript" src="https://sdk.clarifai.com/js/clarifai-latest.js"></script>
27-
2826
```
2927

28+
## React Native
29+
30+
You'll most likely encounter the error `process.nextTick is not a function` while using this library with React Native.
31+
32+
To solve this, add `process.nextTick = setImmediate;` as close to the top of your entrypoint as you can. See [#20](https://github.com/Clarifai/clarifai-javascript/issues/20) for more info.
33+
3034
## Docs
3135

3236
Dive right into code examples to get up and running as quickly as possible with our [Quick Start](https://developer.clarifai.com/quick-start/).

0 commit comments

Comments
 (0)