Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Machine Learning by (4.2k points)

I've looked around the web and can't seem to find a way to use react native with TensorFlow.

I don't think TF supports react-native (at least not officially) integration but I hope someone in the community has found away.

How can one use TensorFlow in a react-native project?

Thanks.

1 Answer

0 votes
by (6.8k points)

This article explains using TensorFlow with native android development. https://omid.al/posts/2017-02-20-Tutorial-Build-Your-First-Tensorflow-Android-App.html

I also need a tf supporting library for react-native. But it seems as you said there is no library yet.

Here they have built an android app with react native with TensorFlow support, have a look,https://github.com/NorthFoxz/whatsthis

There is a library now available bridging TensorFlow with react-native. Also studying Tensorflow Tutorial will give you a broad idea on this.

Check out react-native-TensorFlow

A TensorFlow inference library for react-native.

They have recently added support for iOS, so it's available for both Android and iOS platforms.

To get started:

$ npm install react-native-tensorflow --save

Perform library link:

$ react-native link react-native-tensorflow

For iOS you will also need to use CocoaPods with content:

target '<ProjectName>'

pod 'TensorFlow-experimental'

There are performance limitations due to the nature of react-native bridge when transferring large data between native side and JS. For other known issues and usage check out the library's documentation.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...