This project uses React Native for Windows to desktop app
To create a project directory, run this command in the root folder:
npx react-native init PlantTracker
Copy all project files to this newly created directory
Once the project has been initialized, move to freshly created directory
cd PlantTracker
Install the React Native for Windows packages.
npx react-native-windows-init --overwrite
Run this command in project directory
npm install @react-native-picker/picker
Usage in Windows without autolinking requires the following extra steps:
Open the main application solution in Visual Studio 2019 Right-click Solution icon in Solution Explorer > Add > Existing Project Select ...\PlantTracker\node_modules@react-native-picker\picker\windows\ReactNativePicker\ReactNativePicker.vcxproj
Add a reference to ReactNativePicker to main application project. From Visual Studio 2019: Right-click main application project > Add > Reference... Check ReactNativePicker from Solution Projects.
Add #include "winrt/ReactNativePicker.h" to the headers included at the top of the file.
Add PackageProviders().Append(winrt::ReactNativePicker::ReactPackageProvider()); before InitializeComponent();.
Probably the app will require fix with WindowsTargetPlatform. Edit node_modules@react-native-picker\picker\windows\ReactNativePicker\ReactNativePicker.vcxproj and change WindowsTargetPlatformVersion to your Windows SDK version. Open Main app and React Native Picker solutions, right-click on these projects and choose change WindowsTargetPlatformVersion. Change their versions to these required by app.
Probably the app will require Microsoft.UI.Xaml 2.70 version. Open React Native Picker solution in visual studio 2019, right-click on it, choose manage NuGet Package and change its version Microsoft.UI.Xaml to 2.7.0
npm install firebase
run npm run windows