Skip to content
This repository has been archived by the owner on May 13, 2019. It is now read-only.

Module parse failed, Unexpected token问题 #128

Closed
lijax opened this issue Jul 8, 2016 · 1 comment
Closed

Module parse failed, Unexpected token问题 #128

lijax opened this issue Jul 8, 2016 · 1 comment

Comments

@lijax
Copy link

lijax commented Jul 8, 2016

发现很多第三方模块会有这个问题,但是把第三方模块代码拿出来,放在自己的代码目录就不会有这个问题。例如react-native-animatable模块在 static propTypes = { 那行会报错,放在自己目录就不会。

export function createAnimatableComponent(component) {
  const Animatable = Animated.createAnimatedComponent(component);
  return class AnimatableComponent extends Component {
    static propTypes = {
      animation: PropTypes.string,
      duration: PropTypes.number,
@flyskywhy
Copy link
Contributor

@lijax ,在 issue #138 中已解决该问题

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants