UNPKG

crn-cli

Version:

The Ctrip React Native CLI Tools

1 lines 932 B
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),o=r(d[2]),l=r(d[3]),s=r(d[4]),c=r(d[5]),h=r(d[6]),u=h.StyleSheet,f=h.Text,y=h.TouchableHighlight,C=h.View,x=(function(h){function u(n){var s;return t(this,u),(s=o(this,l(u).call(this,n))).state={toggled:!1},s}return s(u,h),n(u,[{key:"_onPressButton",value:function(){this.setState({toggled:!this.state.toggled})}},{key:"render",value:function(){var t=this.state.toggled?b.bigContainer:b.smallContainer;return c.createElement(y,{onPress:this._onPressButton.bind(this)},c.createElement(C,{style:t},c.createElement(C,{style:b.center},c.createElement(f,{style:b.whiteText},"React Native Button"))))}}]),u})(c.Component),b=u.create({bigContainer:{flex:1,height:60,backgroundColor:'gray'},smallContainer:{flex:1,height:40,backgroundColor:'gray'},center:{flex:1,alignItems:'center',justifyContent:'center'},whiteText:{color:'white'}});m.exports=x},666807,[3,4,5,8,9,11,15]);