UNPKG

crn-cli

Version:

The Ctrip React Native CLI Tools

1 lines 1.63 kB
__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]),u=r(d[6]),p=u.StyleSheet,h=u.Text,y=u.View,f=r(d[7]),E=(function(u){function p(){return t(this,p),o(this,l(p).apply(this,arguments))}return s(p,u),n(p,[{key:"render",value:function(){var t=f('UpdatePropertiesExampleView');return c.createElement(y,{style:x.container},c.createElement(h,{style:x.text},"Press the button to update the field below by passing new properties to the RN app."),c.createElement(t,{style:x.nativeView},c.createElement(h,{style:x.text},"Error: This demo is accessible only from RNTester app")))}}]),p})(c.Component),w=(function(u){function p(){return t(this,p),o(this,l(p).apply(this,arguments))}return s(p,u),n(p,[{key:"render",value:function(){var t=f('FlexibleSizeExampleView');return c.createElement(y,{style:x.container},c.createElement(h,{style:x.text},"Press the button to resize it. On resize, RCTRootViewDelegate is notified. You can use it to handle content size updates."),c.createElement(t,{style:x.nativeView},c.createElement(h,{style:x.text},"Error: This demo is accessible only from RNTester app")))}}]),p})(c.Component),x=p.create({container:{flex:1,backgroundColor:'#F5FCFF'},text:{marginBottom:20},nativeView:{height:140,width:280}});e.title='RCTRootView',e.description='Examples that show useful methods when embedding React Native in a native application',e.examples=[{title:'Updating app properties in runtime',render:function(){return c.createElement(E,null)}},{title:"RCTRootView's size flexibility",render:function(){return c.createElement(w,null)}}]},666787,[3,4,5,8,9,11,15,158]);