Skip to content

run tfjs on mobile using React Native #192

@tangtai

Description

@tangtai

To get help from the community, check out our Google group.

TensorFlow.js version

0.9.1

Browser version

"react": "16.3.1",
"react-native": "0.55.2"

Describe the problem or feature request

just out of curiosity i tried run tfjs on react native, it sort of works, it works on debug mode but when i turn debug mode off there was en error on window.location.search in the file environment.js, since there is not window object when debug mode turned off, the object is created in chrome debugging mode. i wonder if there is a way to get around it or to add react-native support, i think there will be lots possibilities if tfjs can run on mobile app!

Code to reproduce the bug / link to feature request

https://github.com/tangtai/tensorflowJs-rn
here is the code i created

img_0267

img_0266
if the code runs the app can train a linear model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions