oblador / react-native-animatable

Standard set of easy to use animations and declarative transitions for React Native
MIT License
9.81k stars 702 forks source link

How to implement this in Gatsby? #317

Open ghost opened 4 years ago

ghost commented 4 years ago

I run npm install react-native-animatable --save command

Add below line to index.js import * as Animatable from 'react-native-animatable';

and below code inside return function <Animatable.Text animation="slideInDown" iterationCount={5} direction="alternate">Up and down you go</Animatable.Text>

I get below build error, please advise how to fix this:

Generating development JavaScript bundle failed
Unexpected token (133:23)
File: node_modules\react-native-animatable\createAnimatableComponent.js:133:23

 ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

Unexpected token (13:7)

File: node_modules\react-native\index.js:13:7

failed Building development bundle - 13.763s

Packages installed:

  "react-native": "^0.62.2",
  "react-native-animatable": "^1.3.3",
ghost commented 4 years ago

Anyone know how to fix it.

jforaker commented 2 years ago

Anyone know how to fix it.

this is a react-native library bud, it won't work in Gatsby