APSL / react-native-keyboard-aware-scroll-view

A ScrollView component that handles keyboard appearance and automatically scrolls to focused TextInput.
MIT License
5.24k stars 643 forks source link

Error in start script and build : Unexpected Token type #448

Closed victorfernandesraton closed 3 years ago

victorfernandesraton commented 3 years ago

When react app start or build that erros in package appears:

`SyntaxError: /home/victor/dev/storybook/node_modules/@codler/react-native-keyboard-aware-scroll-view/lib/KeyboardAwareHOC.js: Unexpected token (13:12)

11 | } from 'react-native' 12 | import { isIphoneX } from 'react-native-iphone-x-helper'

13 | import type { KeyboardAwareInterface } from './KeyboardAwareInterface' | ^ 14 | 15 | const _KAM_DEFAULT_TAB_BAR_HEIGHT: number = isIphoneX() ? 83 : 49 16 | const _KAM_KEYBOARD_OPENING_TIME: number = 250`

I suposed that erros cause by Flow.js

akmjenkins commented 3 years ago

Just came across this myself, looks like it was shipped untranspiled?

victorfernandesraton commented 3 years ago

I resolve this change version of Native-base library to 2.13.12. just close this issue i opened in worng repo