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

Package is exported with TS typings inside #8

Open
d4rky-pl opened this issue May 7, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@d4rky-pl
Copy link

commented May 7, 2019

Because of the way this package is exported it's impossible to use it without TS:

SyntaxError: (...)/node_modules/react-native-auto-grow-textinput/src/index.js: Unexpected token, expected ";" (14:5)

  12 |   .reduce((newObj, key) => Object.assign(newObj, { [key]: obj[key] }), {})
  13 | 
> 14 | type _Style = {[key: string]: Object} | number;
     |      ^
  15 | export type Style = _Style | Array<_Style>;
  16 | 
  17 | type Props = {
This error occurred during the build time and cannot be dismissed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.