/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */ 'use strict'; var React = require('react-native'); var { StyleSheet, Text, View, } = React; var UIExplorerBlock = require('./UIExplorerBlock'); var UIExplorerPage = require('./UIExplorerPage'); var ViewExample = React.createClass({ statics: { title: '', description: 'Basic building block of all UI.' }, getInitialState: function() { return { textBorderExampleHeight: 20, }; }, render: function() { return ( '}> Blue background 5px blue border 5px padding 5px margin 5px margin and padding, widthAutonomous=true Too much use of `borderRadius` (especially large radii) on anything which is scrolling may result in dropped frames. Use sparingly. Overflow hidden Overflow visible Opacity 0 Opacity 0.1 Opacity 0.3 Opacity 0.5 Opacity 0.7 Opacity 0.9 Opacity 1 ); }, updateHeight: function() { var height = this.state.textBorderExampleHeight === 50 ? 20 : 50; this.setState({textBorderExampleHeight: height}); }, }); var styles = StyleSheet.create({ box: { backgroundColor: '#527FE4', borderColor: '#000033', borderWidth: 1, } }); module.exports = ViewExample;