Closed ivanbabanov closed 9 years ago
looks like the last ";" in index.js causes a problem
I had to delete the sourcemap line in index.js to get my react native example to work.
Might be related to: https://github.com/facebook/react-native/issues/393 ? I'm not exactly sure. Maybe I'm on an old version of React Native?
Whatever the case, it appears to be a problem with React native and not with React Tween State.
The problem is because the last line of the index.js
file ends in a comment. Which causes a problem with the way Packager concats files (https://github.com/facebook/react-native/issues/1005).
Simply add a carriage-return at the end of the file react-tween-state/lib/index.js
and you should be fine.
@sghiassy :+1: Thanks for making the problem clear! I guess this can be closed now. Although, shouldn't all JS files end in a new line?
Humm lib/index.js
is webpack's output, I don't manually touch it. I see that the issue's been solved. Closing then =)
I created PR https://github.com/chenglou/react-tween-state/pull/41 for a permament fix to the issue.
I'm trying to make some simple example for react native.
I've tried to comment out all functionality and determine place where error appears. Now I see that it appears when line with
becomes uncommented