UNPKG

@blueeast/bluerain-plugin-material-ui

Version:

Adds [Material UI](http://www.material-ui.com/#/) theme Provider to BlueRain. Components of material-ui have been developed using a common interface. [https://blueeast.gitbook.io/bluerain-plugin-material-ui](https://blueeast.gitbook.io/bluerain-plugin-mat

26 lines 992 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const bluerain_os_1 = __importDefault(require("@blueeast/bluerain-os")); const react_1 = __importDefault(require("react")); const __1 = require("../"); class BlueRainCheckbox extends react_1.default.Component { constructor(props) { super(props); this.handleChange = this.handleChange.bind(this); this.state = { checked: false, }; } handleChange() { this.setState({ checked: !this.state.checked }); } render() { return (react_1.default.createElement(bluerain_os_1.default.Components.View, null, react_1.default.createElement(__1.Checkbox, { onPress: this.handleChange, value: this.state.checked }))); } } exports.default = BlueRainCheckbox; //# sourceMappingURL=Checkboxtest.js.map