Update Sample Apps package.json to 0.79.2
@anupriya13 đang làm issue này rồi.
Từ ngày 24/7/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Refer this PR and update all package.json for sample apps to 0.79.2 for react-native-windows https://github.com/microsoft/react-native-windows-samples/pull/1041/files#diff-636eeb99b0e95581cba2bea9bd8e2a3b66afd0156aed21581d334d52597ef4df
This diff should be similar to above PR.
Below instructions can help you complete this task:
Calculator C++/WinRT Sample - React Native for Windows
See ../README.md for details of this sample.
See ../csharp/ for a C# version of this sample.
It currently targets React Native Windows 0.79.
Setup
See ../README.md#Setup.
Run
See ../README.md#Run.
Upgrade
To upgrade this sample to the latest version of RNW:
-
Open a command prompt and navigate to the
samples/Calculatorfolder:cd .. -
Delete this folder:
rd /s /q cppwinrt -
Create a new React Native app and change version to version you want to upgrade to (replace 'version' with desired version - for latest version, use 'latest'):
npx @react-native-community/cli@latest init Calculator --template @react-native-community/template@latest --skip-git-init -
Add a lockfile to the calculator directory:
cd Calculator yarn install -
Add Windows support:
yarn add react-native-windows@latest npx @react-native-community/cli@latest init-windows --template old/uwp-cpp-app --overwrite -
Rename the folder to cppwinrt
cd .. ren Calculator cppwinrt -
Restore these original app files:
cd cppwinrt git restore README.md git restore App.tsx -
Verify the new app builds and runs:
npx @react-native-community/cli@latest run-windows -
Look at the Package.appxmanifast and change the publisher name to "CN=React Native Windows Sample". Revert all changes made to GUID values in the project and solution files.
-
Update this readme with the new major version at the top.
Calculator C# Sample - React Native for Windows
See ../README.md for details of this sample.
See ../cppwinrt/ for a C++/Winrt version of this sample.
It currently targets React Native Windows 0.79.
Setup
See ../README.md#Setup.
Run
See ../README.md#Run.
Upgrade
To upgrade this sample to the latest version of RNW:
-
Open a command prompt and navigate to the
samples/Calculatorfolder:cd .. -
Delete this folder:
rd /s /q csharp -
Create a new React Native app and change version to version you want to upgrade to (replace 'version' with desired version - for latest version, use 'latest'):
npx @react-native-community/cli@latest init Calculator --template @react-native-community/template@latest --skip-git-init -
Add
yarn.lockfile to app directory (otherwiseyarn add react-native-windows@latestwill throw an error) -
Add Windows support:
cd Calculator yarn add react-native-windows@latest npx @react-native-community/cli@latest init-windows --template old/uwp-cs-app --overwrite -
Rename the folder to csharp
cd .. ren Calculator csharp -
Restore these original app files:
cd csharp git restore README.md git restore App.tsx -
Verify the new app builds and runs:
npx @react-native-community/cli@latest run-windows -
Look at the Package.appxmanifast and change the publisher name to "CN=React Native Windows Sample". Revert all changes made to GUID values in the project and solution files.
-
Update this readme with the new major version at the top.
CalculatorExperimental - React Native for Windows
This sample showcases the usage of React Native for Windows to build a simple calculator that is hosted on the experimental Fabric rendering system.
Currently this samples targets RNW 0.79
Setup
First, make sure you've met the React Native Windows System Requirements.
Then, within this folder, install the applications's dependencies. If you have yarn installed:
yarn install
Otherwise, you can just use npm:
npm install
Run
Once you have all of the dependencies installed, you can run the application with the following command:
npx @react-native-community/cli@latest run-windows
The command will:
- Build the application and all dependencies
- Deploy the application
- Launch the React Native Server and Debugger
- Launch the application
Upgrade
To upgrade this sample to the latest version of RNW:
-
Open a command prompt and navigate to the
samplesfolder:cd .. -
Delete this folder:
rd /s /q fabric -
Create a new React Native app and change version to version you want to upgrade to:
npx --yes @react-native-community/cli@latest init CalculatorFabric --template @react-native-community/template@latest --skip-git-init -
Add Windows support:
cd CalculatorFabric yarn add react-native-windows@latest npx @react-native-community/cli init-windows --template cpp-app --overwrite --logging -
Rename the folder to fabric
cd .. ren CalculatorFabric fabric -
Restore README.md and App.tsx
cd fabric git restore App.tsx git restore README.md -
Verify App runs
npx @react-native-community/cli@latest run-windows -
Look at the Package.appxmanifast and change the publisher name to "CN=React Native Windows Sample". Revert all changes made to GUID values in the project and solution files.
-
Update this file to the current version of the App
Native Module C++ Sample - React Native for Windows
See ../README.md for more details of this sample.
Note: Don't build your own projects directly out of this sample. When you publish a native module (as source), you'll want to create a new project with the correct metadata. This will also make sure that you're using unique identifiers in your project files to avoid conflicts with other native modules.
Setup
First, make sure you've met the React Native Windows System Requirements.
Then, install the module's dependencies with yarn and build the TypeScript:
yarn install
yarn prepare
Run
To run the example app (targeting the New Architecture) and see that the module works:
yarn example windows
Alternatively, to run the old example app (targeting the Old Architecture) and see that the module works:
yarn example-old windows
Upgrade
First run the Setup steps above. Then run the UpgradeSmokeTest.ps1 script with the target RNW version (usually latest):
..\..\..\.github\scripts\UpgradeSmokeTest.ps1 latest $True $True $True
Then call the following to update the JS and codegen with:
yarn prepare
yarn codegen-windows
Finally, build and verify both example apps as per the Run steps above. If both apps work without issue, then go ahead and submit the PR with your changes.
- Ngôn ngữ chính
- C#
- Star
- 544
- Fork
- 218
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/react-native-windows-samples
-
bug documentation Needs: Triage :mag:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
bug documentation Needs: Triage :mag:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Document node 18 dependeciesCó thể đã có người làm @Danielweng0902 đã nhận 121 ngày trước. Đang mởdocumentation enhancement good first issue good first issue: easy
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
microsoft/react-native-windows-samples#861 · 2 bình luận ·
-
Update the sample projects to be compatible with react-native-windows 0.82.0-preview.8Có thể làm lại được @iamAbhi-916 đã nhận 258 ngày trước và không có pull request nào đang mở. Đang mởenhancement Workstream: Gallery and Samples
microsoft/react-native-windows-samples#1141 · 1 người được giao ·
-
Update CI pipeline to windows-latest when main has changes readyCó thể làm lại được @vineethkuttan đã nhận 345 ngày trước và không có pull request nào đang mở. Đang mởbug
microsoft/react-native-windows-samples#1099 · 1 người được giao ·
Tất cả issue của microsoft/react-native-windows-samples
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Devolutions/UniGetUI#5541 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[aw] PR Iteration Agent 🔧 failedĐang mởagentic-workflows Needs: Triage :mag:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[誤判定]Đang mởlinux アプリ: ブラウザー 再現済み 要トリアージ 誤判定
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
yksr-melt/Meltype#853 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
S: Untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Trauma-Station/Trauma-Station#5073 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày