Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switched JS syntax export style in figwheel-bridge.js to fix react-native-web #282

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function shimRequire(requireMap) {
// deprecated
// this will not work when you use react native expo
// use createBridgeComponent instead
function startApp(options){
function start(options){
assert(options.appName, "must provide an appName");
assertKeyType(options, "appName", "string");
// The crux of the loading problem for React Native is that the code needs to be loaded synchronously
Expand All @@ -162,8 +162,8 @@ function startApp(options){
ReactNative.AppRegistry.registerComponent(options.appName, () => createBridgeComponent(options));
}

module.exports = {
shimRequire: shimRequire,
start: startApp,
createBridgeComponent: createBridgeComponent
};
export {
shimRequire,
start,
createBridgeComponent
}