react-native-paper
react-native-paper copied to clipboard
Example Expo Snack not working: Unexpected token (10:7)
Current behaviour
Running the example Expo snack returns the following error:
module://App.js: Unexpected token (10:7)
8 | DarkTheme,
9 | DefaultTheme,
> 10 | type Theme,
| ^
11 | } from 'react-native-paper';
Evaluating module://App.js
Loading module://App.js
Expected behaviour
Expo snack should load properly.
Code sample
https://snack.expo.io/@satya164/github.com-callstack-react-native-paper:example
Screenshots (if applicable)
N/A
What have you tried
Tried running the snack both in browser and Expo app on Android phone.
Your Environment
| software | version |
|---|---|
| ios or android | Android |
| react-native | 0.57.1 |
| react-native-paper | 2.2.4 |
Thanks for the report. We probably have to update the Babel version in Snack.