react-native-paper icon indicating copy to clipboard operation
react-native-paper copied to clipboard

Example Expo Snack not working: Unexpected token (10:7)

Open auzair92 opened this issue 8 years ago • 1 comments

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

auzair92 avatar Nov 12 '18 08:11 auzair92

Thanks for the report. We probably have to update the Babel version in Snack.

satya164 avatar Nov 12 '18 15:11 satya164