toystars / react-native-multiple-select

Simple multi-select component for react-native
MIT License
569 stars 317 forks source link

ViewPropTypes will be removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'. #203

Open Saif-M-Khan opened 2 years ago

Saif-M-Khan commented 2 years ago

Issue summary

As title says, the react-native-multi-select.js file inside lib is importing ViewPropTypes from react-native. Not breaking, but might be in the future.

Library versions

react-native: 0.68.2 react-native-multiple-select: 0.5.9

Steps to Reproduce

No real steps to reproduce. Just run an Android (I have been testing on Android) and note the warning

I've attached a screenshot of the error as well. image

Ashok-da commented 2 years ago

Today I encountered export 'ViewPropTypes' was not found in 'react-native-web/dist/index' at ./node_modules/react-native-multiple-select/lib/react-native-multi-select.js:68:20.

And using ViewPropTypes exported from 'deprecated-react-native-prop-types' module worked for me.

shraddhahinge commented 2 years ago

I got the same issue errorsdk46

I did uninstalled react-native-multiple-select package & installed it again but still cant resolve this issue,

please give me solution for this issue, I need it urgently, my release is getting hold due to this issue

I tried all the solutions I am able to try but none worked

Thanks in advance

AugustoAleGon commented 2 years ago

@shraddhahinge can you provide me with the expo doctor information. So I can try to reproduce the same issue.

Are you using the latest publish version? I am just wanna doble check that. Review that in your yarn.lock file.

shraddhahinge commented 2 years ago

@AugustoAleGon

This is expo doctor info :

Expected package @expo/config-plugins@^5.0.0 Found invalid: @expo/config-plugins@3.1.0 @expo/config-plugins@4.1.5 @expo/config-plugins@1.0.33 (for more info, run: npm why @expo/config-plugins) Expected to not find any copies of @unimodules/core Found invalid: @unimodules/core@7.2.0 (for more info, run: npm why @unimodules/core) Some dependencies are incompatible with the installed expo package version:

This is package info in yarn.lock file :

expo-multiple-select@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/expo-multiple-select/-/expo-multiple-select-1.0.2.tgz" integrity sha512-7/H88GEYn5JOl5A5E63Re5hijNndK4RK7RzvdHSmlsIuOUt7AmPlL5KcIqpqAgQVZrEC8d+JYFKq4JeF7w5o0g== dependencies: prop-types "^15.7.2"

AugustoAleGon commented 2 years ago

@shraddhahinge this is another library. It is the library forked of this library. This is the one https://github.com/rafaelnsantos/react-native-multiple-select

ArthurAssuncao commented 1 year ago

I have the same error. I just copy/paste example from README.

Library versions "expo": "~47.0.13", "react": "18.1.0", "react-native": "0.70.5", "react-native-multiple-select": "^0.5.12",

› Reloading apps
Android Bundling failed 1524ms
Unable to resolve "deprecated-react-native-prop-types" from "node_modules/react-native-multiple-select/lib/react-native-multi-select.js"
fogg4444 commented 1 year ago

following

pandya293 commented 1 year ago

Same error facing. anyone get solution ?