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 (10:4) #10

Closed
kboek opened this issue Jan 13, 2019 · 1 comment
Closed

Unexpected token (10:4) #10

kboek opened this issue Jan 13, 2019 · 1 comment

Comments

@kboek
Copy link

kboek commented Jan 13, 2019

import SpinnerButton from 'react-native-spinner-button';

class Login extends Component {
  render() {
    return (
      // ... other stuff
      <SpinnerButton isLoading={ false  } >
        Login
      </SpinnerButton>
    );
  }
}
Failed to compile.

./node_modules/react-native-spinner-button/components/SpinnerButton.js
SyntaxError: ...\node_modules\react-native-spinner-button\components\SpinnerButton.js: Unexpected token (10:4)

   8 |   const { animationType, buttonStyle, onPress, isLoading, children } = props;
   9 |   return (
> 10 |     <Animatable.View animation={animationType || 'fadeIn'}>
     |     ^
  11 |       <TouchableOpacity
  12 |         style={[styles.defaultButtonStyle, buttonStyle]}
  13 |         onPress={onPress}
```
@kboek kboek closed this as completed Jan 13, 2019
@kboek
Copy link
Author

kboek commented Jan 13, 2019

Allegedly doesn't work with React in browser ...

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

No branches or pull requests

1 participant