react-native-markdown icon indicating copy to clipboard operation
react-native-markdown copied to clipboard

UNMET PEER DEPENDENCY

Open westinyang opened this issue 7 years ago • 3 comments

I use the react native 0.43 version, or do we have this problem, After adding dependent on lead to error of project startup

westinyang avatar Apr 11 '17 01:04 westinyang

Same here. I got the message:

└─┬ [email protected] 
  ├── [email protected] 
  └── [email protected]  (git://github.com/lwansbrough/simple-markdown.git#62efb54d923cae20684a58e87ab159b21edda3b1)

npm WARN [email protected] requires a peer of react-native@^0.4.0 but none was installed.

tomasdelima avatar Apr 13 '17 04:04 tomasdelima

Found out that loading modules was not compatible with my react native version. Change the first lines in ./node_modules/react-native-markdown/Markdown.js and ./node_modules/react-native-markdown/rules.js to:

import React, { Component } from 'react' import { View, Image, Text } from 'react-native'

tomasdelima avatar Apr 13 '17 04:04 tomasdelima

https://github.com/CharlesMangwa/react-native-simple-markdown -- looks more active

jcollum avatar Apr 21 '17 22:04 jcollum