TripSit / tripsit-mobile

3 stars 0 forks source link

Figure out this error #10

Open LunarUrsan opened 2 years ago

LunarUrsan commented 2 years ago

Why does this happen when i view the web version?

WARNING 13:50 ./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. WARNING 13:50 ./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. WARNING 13:50 ./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 | / WARNING 13:50 ./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 | / WARNING 13:50 ./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. WARNING 13:50 ./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.

LunarUrsan commented 2 years ago

This was caused by the react-native-autocomplete-input module. Apparently ViewPropTypes has been deprecated much to the frustration of a lot of people. I've moved to react-native-autocomplete-dropdown

LunarUrsan commented 2 years ago

Web view still doesnt work