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

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

Open
Saif-M-Khan opened this issue May 27, 2022 · 8 comments

Comments

@Saif-M-Khan
Copy link

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

@account-sasha
Copy link

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
Copy link

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
Copy link
Collaborator

AugustoAleGon commented Aug 26, 2022

@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
Copy link

shraddhahinge commented Aug 29, 2022

@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:

  • react - expected version: 18.0.0 - actual version installed: 17.0.1
  • react-dom - expected version: 18.0.0 - actual version installed: 17.0.1
  • react-native - expected version: 0.69.5 - actual version installed: 0.69.4
    Your project may not work correctly until you install the correct versions of the packages.
    To install the correct versions of these packages, please run: expo doctor --fix-dependencies,
    or install individual packages by running expo install [package-name ...]
    Warning: Invalid version react-native@0.69.4 for expo sdkVersion 46.0.0. Use react-native@0.69.5

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
Copy link
Collaborator

@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
Copy link

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
Copy link

following

@pandya293
Copy link

Same error facing. anyone get solution ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants