byteburgers / react-native-autocomplete-input

Pure javascript autocomplete input for react-native
https://byteburgers.com/autocomplete
MIT License
818 stars 255 forks source link

ViewPropTypes #222

Closed asdf23 closed 2 years ago

asdf23 commented 2 years ago

After installing a bare-bones expo application and including only <Autocomplete /> (or copying a full example) I get the following errors:

./node_modules/react-native-autocomplete-input/index.js:57:18
"export 'ViewPropTypes' was not found in 'react-native-web/dist/index'
  55 |    * surrounds the autocomplete component.
  56 |    */
> 57 |   containerStyle: ViewPropTypes ? ViewPropTypes.style : PropTypes.object,
     |                  ^
  58 |   /**
  59 |    * Assign an array of data objects which should be
  60 |    * rendered in respect to the entered text.
./node_modules/react-native-autocomplete-input/index.js:57:34
"export 'ViewPropTypes' was not found in 'react-native-web/dist/index'
  55 |    * surrounds the autocomplete component.
  56 |    */
> 57 |   containerStyle: ViewPropTypes ? ViewPropTypes.style : PropTypes.object,
     |                                  ^
  58 |   /**
  59 |    * Assign an array of data objects which should be
  60 |    * rendered in respect to the entered text.
./node_modules/react-native-autocomplete-input/index.js:75:23
"export 'ViewPropTypes' was not found in 'react-native-web/dist/index'
  73 |    * the textInput component.
  74 |    */
> 75 |   inputContainerStyle: ViewPropTypes ? ViewPropTypes.style : PropTypes.object,
     |                       ^
  76 |   /**
  77 |    * These style will be applied to the result list.
  78 |    */
./node_modules/react-native-autocomplete-input/index.js:75:39
"export 'ViewPropTypes' was not found in 'react-native-web/dist/index'
  73 |    * the textInput component.
  74 |    */
> 75 |   inputContainerStyle: ViewPropTypes ? ViewPropTypes.style : PropTypes.object,
     |                                       ^
  76 |   /**
  77 |    * These style will be applied to the result list.
  78 |    */
./node_modules/react-native-autocomplete-input/index.js:79:22
"export 'ViewPropTypes' was not found in 'react-native-web/dist/index'
  77 |    * These style will be applied to the result list.
  78 |    */
> 79 |   listContainerStyle: ViewPropTypes ? ViewPropTypes.style : PropTypes.object,
     |                      ^
  80 |   /**
  81 |    * `onShowResults` will be called when list is going to
  82 |    * show/hide results.
./node_modules/react-native-autocomplete-input/index.js:79:38
"export 'ViewPropTypes' was not found in 'react-native-web/dist/index'
  77 |    * These style will be applied to the result list.
  78 |    */
> 79 |   listContainerStyle: ViewPropTypes ? ViewPropTypes.style : PropTypes.object,
     |                                      ^
  80 |   /**
  81 |    * `onShowResults` will be called when list is going to
  82 |    * show/hide results.
MelissaPastoreClair commented 2 years ago

I'm seeing this as well

stale[bot] commented 2 years ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.