Overview:
I created a NPM dependency react-native-ultimate-modal-picker and it relies on a few other dependencies.
Expected Behavior:
Error:
ReferenceError: Can't find variable: React
What I've tried
react
imported. Link to Code react
and react-native
as peerDependencies
for my NPM Package react-native-ultimate-modal-pickerSo what am I missing here?
You can try a few things.
Try importing react like import React from 'react'
at the beginning of your project
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.