React.createFactory() is deprecated

I got this error when I run ios

‘React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.’

How can I fix it.


That is not in the source code, it is from the library we used in the app.

We will check that from where and update.