microsoft / react-native-windows

A framework for building native Windows apps with React.
https://microsoft.github.io/react-native-windows/
Other
16.33k stars 1.14k forks source link

ReactNative reference is not added properly #3523

Closed SelvaraniAlagumuthu closed 5 years ago

SelvaraniAlagumuthu commented 5 years ago

Hi,

I trying the react-native in windows , so i created the react-native init appname --version 0.59.0. react-native windows --template vnext. Its automatically created vnext version 0.59. my system requirment is. Windows 10 pro @2019 and i have VisualStudio2019. While i install react-native-file-viewer into this react-native windows sample app. But inside react-native-file-viewer under Refernces i ReactNative i am getting resolve as false. And also while try to run the app in simulator/localmachine i got the error as ReactNative not found in RNFS. Could you please help me to resolve this. Because i am very new in react-native as well as in VisualStudio

chrisglein commented 5 years ago

Our support for native modules in vNext is currently in progress (see project https://github.com/microsoft/react-native-windows/projects/6). While react-native-file-viewer lists support for Windows, that would be for vCurrent. Since you've specified --template vnext you're getting the new implementation that is currently incompatible with that module. We'll have our native modules support online very soon and be able to support this one as well. In the meantime your workaround is to not use --template vnext.

@harinikmsft as an FYI for building the module support list