microsoft / TypeScript-React-Native-Starter

A starter template for TypeScript and React Native with a detailed README describing how to use the two together.
MIT License
1.91k stars 211 forks source link

Unable to execute JS call: __fbBatchedBridge is undefined #15

Open vladberteanu opened 6 years ago

vladberteanu commented 6 years ago

I cloned the repo, yarn install, ran it in xcode Version 9.1 (9B55) and i get the following error. Any advice on what I should try to make it work? Thanks.

screen shot 2017-11-24 at 8 22 52 am
isaacpz commented 6 years ago

+1

ManAnRuck commented 6 years ago

+1

fabricehong commented 6 years ago

+1

aaronsky commented 6 years ago

This is fixed in my PR #21, and also in #7. The issue is that it cannot initialize the Javascript bundle correctly and can be fixed by running ./node_modules/.bin/tsc and adding ./lib to the path in the index.[platform].js files

./index.ios.js

import './lib/index.ios';

./index.android.js

import './lib/index.android';
songhanlin commented 6 years ago

+1

aduuub commented 6 years ago

+1