MacOS
Build macOS desktop applications using React Native.
Install #
npm i material-breador
yarn add material-breadSetup #
Since React Native macOS is just a fork of React Native the setup process is easy. Go to the react-native-macos repoto learn more. Alternatively, you can use the react-native-infinty cli to generate a project with Material Bread already setup.
Init a project
npm install react-native-macos-cli -g
react-native-macos init MyProject
cd MyProject
react-native-macos run-macos Dependencies
Next, simply install and link react-native-vector-icons and react-native-svg .
Usage #
Wrap your app or root in the
BreadProvider and start developing. You can learn about customizing on the theme page.import React, { Component } from "react";
import Root from "./Root";
import { BreadProvider } from "material-bread";
export default class App extends Component {
render() {
return (
<BreadProvider>
<Root />
</BreadProvider>
);
}
}Examples #
If you're confused, check out this example repos with Material Bread set up. Alternatively, you can use the react-native-infinty cli to generate a project with Material Bread already setup.