title: Peer vs Dependency for npm package
body: <p>I am creating a react-native npm module. </p>
  
  <p>The npm module uses React &amp; React-Native Packages i.e say something like this </p>
  
  <pre><code>import React, { Component}  from 'react'
  import { View } from 'react-native' 
  
  class something extends Component {
  
  render () {
  return (
  &lt;View&gt; 
  {/* Code */}
  &lt;/View&gt; 
  ) 
  </code></pre>
  
  <p>Now, here adding should I add React and React-native as dependencies or peerDependencies and why?</p>
  
  <p>Update: My current package.json for library (npm module) </p>
  
  <pre><code>"dependencies": {
      "prop-types": "^15.7.2",
      "react": "^16.9.0",
      "react-native": "^0.60.5",
      "react-native-device-info": "^2.3.2"
    }
  </code></pre>
  
  <p>And For the app let it be something like </p>
  
  <pre><code> "dependencies": {
        "prop-types": "^15.7.2",
        "react": "^16.9.0",
        "react-native": "^0.60.5"
      }
  </code></pre>
  
  <p>Does it look correct? </p>