A react-native component library that implements the Fluent Design System.
Перейти к файлу
Jason Morse dc062498d6
Add a git attributes file for line ending settings (#180)
* bump beachball version to one with prepublish fix

* update beachball hook to use new prepublish strategy

* add gitattributes for auto text line endings

* update values

* renormalize files

* Change files
2020-04-24 11:38:36 -07:00
.ado iOS/macOS with CI and RN dependencies (#166) 2020-04-21 19:20:09 -07:00
.vscode Make breakpoints work when doing direct debugging (#142) 2020-03-30 09:03:03 -07:00
apps Add a git attributes file for line ending settings (#180) 2020-04-24 11:38:36 -07:00
assets Remove docs package (#178) 2020-04-22 17:04:27 -07:00
change Add a git attributes file for line ending settings (#180) 2020-04-24 11:38:36 -07:00
packages Add a git attributes file for line ending settings (#180) 2020-04-24 11:38:36 -07:00
scripts Add a git attributes file for line ending settings (#180) 2020-04-24 11:38:36 -07:00
.dockerignore Initial scaffolding (#1) 2019-08-02 09:28:49 -07:00
.eslintignore Initial scaffolding (#1) 2019-08-02 09:28:49 -07:00
.eslintrc.json Add Android button to expo playground 2019-12-17 14:15:46 -08:00
.gitattributes Add a git attributes file for line ending settings (#180) 2020-04-24 11:38:36 -07:00
.gitignore iOS/macOS with CI and RN dependencies (#166) 2020-04-21 19:20:09 -07:00
CODE_OF_CONDUCT.md Add a git attributes file for line ending settings (#180) 2020-04-24 11:38:36 -07:00
LICENSE Add a git attributes file for line ending settings (#180) 2020-04-24 11:38:36 -07:00
README.md Add a git attributes file for line ending settings (#180) 2020-04-24 11:38:36 -07:00
api-extractor.json Move api-extractor and tsconfig to shared folder 2020-03-25 13:23:14 -07:00
beachball.config.js Update to new version of beachball with working prepublish hook (#167) 2020-04-20 10:58:02 -07:00
lerna.json Remove docs from yarn and lerna workspace (#179) 2020-04-23 17:42:55 -07:00
package.json Remove docs from yarn and lerna workspace (#179) 2020-04-23 17:42:55 -07:00
prettier.config.js Initial scaffolding (#1) 2019-08-02 09:28:49 -07:00
tsconfig.json Move api-extractor and tsconfig to shared folder 2020-03-25 13:23:14 -07:00
yarn.lock Remove docs package (#178) 2020-04-22 17:04:27 -07:00

README.md

FluentUI React Native

FluentUI React Native is a javascript component library that provides developers with controls that are part of the Fluent Design System. These controls are built on React Native and fully customizable.

Getting Started

If you have an existing React Native project, it's easy to begin using FluentUI React Native. If you need to setup a new React Native project, please see the React Native Windows Getting Started documentation.

Prerequisites

Install FluentUI React Native into an existing project

Navigate to the root folder of your project, and use npm to install the package:

 npm i @fluentui/react-native

After successful installation, you can test the package by importing components at the top of your app's entry file, e.g. App.js:

 import { Checkbox } from '@fluentui/react-native';

Once you have the package installed, check out our Hello World Fluent page to start writing code (Coming Soon).

Documentation

Components and Controls

Our component documentation is hosted in a separate repository, Microsoft FluentUI Site that will be published to its own website (Coming Soon).

Theming framework

Our FluentUI framework documentation is found in this repository alongside the implementation.

Developing in the repo

Yarn + Lerna

This repo is set up as a monorepo using Lerna + Yarn workspaces. The yarn commands will trigger the lerna commands which will execute yarn commands in each package. To install yarn, please follow instructions in the Yarn documentation.

Setup your development environment

To start developing in the repository you can:

  1. git clone https://github.com/microsoft/fluentui-react-native.git
  2. cd fluentui-react-native
  3. yarn
  4. yarn build

After a successful yarn build, you can explore FluentUI Tester, our demo application to play with each of the controls. To run FluentUI Tester, please follow instructions in the FluentUI Tester readme.

Beachball

This repo manages semantic versioning and publishing using Beachball. When contributing, make sure to run the following before making a pull request:

  1. yarn change will take you through a command line wizard to generate change files
  2. Make sure to commit and push the newly generated change file

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.