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

Unexpected token error while using react-native-web #492

Closed
Mukhammadali opened this issue May 5, 2020 · 3 comments · Fixed by #510
Closed

Unexpected token error while using react-native-web #492

Mukhammadali opened this issue May 5, 2020 · 3 comments · Fixed by #510

Comments

@Mukhammadali
Copy link

I am facing this problem while integrating react-native-web. Is there any solution for this?

Screen Shot 2020-05-05 at 11 21 47 AM

@WoLewicki
Copy link
Member

Can you check if applying #510 fixes the problem?

WoLewicki added a commit that referenced this issue May 14, 2020
Remove the `defaultProps` since it is not necessary. Should fix #492.
@quangvinh2080
Copy link

@WoLewicki I'm still having this problem when using it with react-native-web

./node_modules/react-native-screens/src/screens.web.js
SyntaxError: ./node_modules/react-native-screens/src/screens.web.js: Unexpected token (19:6)

  17 | 
  18 |     return (
> 19 |       <View
     |       ^
  20 |         style={[style, ENABLE_SCREENS && !active ? { display: 'none' } : null]}
  21 |         {...rest}
  22 |       />

@WoLewicki WoLewicki reopened this Jun 15, 2020
@WoLewicki
Copy link
Member

It should work ok after #517 is merged.

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 a pull request may close this issue.

3 participants