FluentUI Tester
is the test app that we use to test our FluentUI components during development. It uses the react-native-test app under the covers, and loads the fluent-tester bundle.
- Node.js
- You can quickly see if Node.js is installed by running "node -v" in a command prompt. If it's installed, you will see the version number. If not, it will not recognize the command.
- React Native Windows Development Dependencies
- NOTE: Please make sure you grab all of the items listed there and the appropriate versions.
- You can check or install these dependencies by running the command mentioned in the link above in an elevated PowerShell window.
- If you're installing or verifying Visual Studio 2019 dependencies manually, you can check your tool options under Tools > Get Tools and Features...
- Azure Credentials Plugin for NuGet
- We're currently on an expermental version of react-native-windows which is being published to a private NPM feed hosted on Azure DevOps.
- Run
yarn
from the root of the repo - From this directory, run
yarn install-windows-test-app
- From this directory, simply
yarn windows
You can debug native code in Visual Studio. To debug javascript code, you can either use standard web debugging, or you can use React Native Tools to debug directly in VS Code. The steps are as follows:
- Launch your test app + packager as you normally would
- Go the debug menu in VS Code and run the "Attach to Packager (Windows)" configuration
- Open the developer menu in your test app, and click debug
- You now should be able to set breakpoints and step through your code directly in VS Code.
Dependencies are managed by
@rnx-kit/align-deps
.
If you're looking to upgrade react-native
, use the interactive upgrade command:
yarn rnx-align-deps --set-version
This command will ensure that all relevant packages are bumped correctly.
You can read more about this tool here:
@rnx-kit/align-deps
design document
If you see an error like the following:
- Restoring NuGet packages
× Failed to restore the NuGet packages: Error: EPERM: operation not permitted, unlink C:\Users\adrum\AppData\Local\Temp\nuget.4.9.2.exe'
Double check that you have correctly installed the Azure Credentials Plugin for NuGet mentioned in the Prerequisites above.