bs-react-native-material-ui

0.1.0 • Public • Published

BuckleScript bindings for React Native Material Ui

Status

Not all components got bindings yet, but all should be covered very soon. Check out the source.

Feel free to create an issue or pull request if you find anything missing.

Installation

yarn add bs-react-native-material-ui yarn add react-native-material-ui

Then add react-native-material-ui to bs-dependencies in your bsconfig.json:

{
  "bs-dependencies": ["react-native-material-ui"]
}

Usage

let uiTheme: ReactNativeMaterialUi.ThemeProvider.uiTheme = {
  palette: {
    primaryColor: "#000000"
  }
};
 
let app = () =>
  <ReactNativeMaterialUi.ThemeProvider uiTheme>
    <View>
      <ReactNativeMaterialUi.ActionButton
          actions=(
            ReactNativeMaterialUi.ActionButton.ShapeAction({
              icon: "done",
              name: "Done",
              label: "Yello"
            })
          )
        />
        
    </View>
  </ReactNativeMaterialUi.ThemeProvider>;

Bindings

/bs-react-native-material-ui/

    Package Sidebar

    Install

    npm i bs-react-native-material-ui

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    18.9 kB

    Total Files

    7

    Last publish

    Collaborators

    • drager