crn-cli
Version:
The Ctrip React Native CLI Tools
1 lines • 951 B
JavaScript
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),u=r(d[4]),l=r(d[5]),c=r(d[6]),p=r(d[7]),f=r(d[8]),h=r(d[9]),v=r(d[10]),y=(function(c){function h(){return t(this,h),s(this,o(h).apply(this,arguments))}return u(h,c),n(h,[{key:"UNSAFE_componentWillReceiveProps",value:function(t){var n=this.props,s=n.onEnable,o=n.onDisable,u=n.persister;t.persister.state!==u.state&&(t.persister.state?s():o())}},{key:"render",value:function(){var t=this.props,n=t.label,s=t.persister;return l.createElement(v,{style:b.row},l.createElement(f,null,n),l.createElement(p,{value:s.state,onValueChange:function(t){s.setState(function(){return t})}}))}}]),h})(l.Component),b=c.create({row:{padding:10,flexDirection:'row',justifyContent:'space-between'}});y=h.createContainer(y,{cacheKeySuffix:function(t){return'Switch:'+t.label},getInitialState:function(t){return t.initialValue}}),m.exports=y},666779,[3,4,5,8,9,54,55,301,180,666780,80]);