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

Peer dependency requirement of newer react versions #184

Closed
yittoo opened this issue Oct 20, 2022 · 4 comments
Closed

Peer dependency requirement of newer react versions #184

yittoo opened this issue Oct 20, 2022 · 4 comments

Comments

@yittoo
Copy link

yittoo commented Oct 20, 2022

Issue Context:
With newer versions of react, we are receiving the warning of
npm WARN [email protected] requires a peer of react@^16.2.0 but none is installed. You must install peer dependencies yourself.

Can this be revised for newer versions of react-native?

@pwfcurry
Copy link

#158

@RonRadtke
Copy link
Collaborator

You can switch over to: https://www.npmjs.com/package/@ronradtke/react-native-markdown-display
We created a fork and keep maintaining it.

@WelshDev
Copy link

@RonRadtke I've tried your fork, I'm getting "Unable to resolve module react-native-markdown-display" when trying to import it.

Installed using...
npm i @ronradtke/react-native-markdown-display

Imported like this...
import Markdown from "react-native-markdown-display"

From package.json...

"react": "18.1.0",
"react-native": "0.70.6",
"@ronradtke/react-native-markdown-display": "^7.0.0-alpha.2"

Thanks!

@RonRadtke
Copy link
Collaborator

Try to change the import to import Markdown from '@ronradtke/react-native-markdown-display';

@iamacup iamacup closed this as completed Dec 11, 2023
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

5 participants