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

[web] Fixed lazy exports #619

Merged

Conversation

EvanBacon
Copy link
Collaborator

Why

Default import was removed from react-native-web. necolas/react-native-web#1277
The use of module.exports and import/export breaks tree-shaking in with babel-preset-expo.

Related: #617
Fixes: expo/expo#4339

How

  • Moved the shims to Gestures(.web).js
  • Moved all modules out of main re-export file. (optional)

Copy link
Member

@kmagiera kmagiera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@kmagiera kmagiera merged commit 0ea3d95 into software-mansion:master Jun 1, 2019
@EvanBacon EvanBacon deleted the @evanbacon/expo-web/lazy-exports-shim branch June 2, 2019 00:39
janicduplessis pushed a commit to janicduplessis/react-native-gesture-handler that referenced this pull request Feb 16, 2020
# Why

Default import was removed from react-native-web. necolas/react-native-web#1277
The use of module.exports and import/export breaks tree-shaking in with babel-preset-expo.

Related: software-mansion#617
Fixes: expo/expo#4339

# How

* Moved the shims to `Gestures(.web).js`
* Moved all modules out of main re-export file. (optional)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expo@33 for Web incompatible with react-navigation (due to react-gesture-handler)
2 participants