crn-cli
Version:
The Ctrip React Native CLI Tools
1 lines • 2.66 kB
JavaScript
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),l=r(d[2]),o=r(d[3]),s=r(d[4]),u=r(d[5]),c=r(d[6]),p=c.Alert,f=c.StyleSheet,E=c.Text,y=c.TouchableHighlight,h=c.View,b=r(d[7]),A="Credibly reintermediate next-generation potentialities after goal-oriented catalysts for change. Dynamically revolutionize.",w=(function(c){function f(){return t(this,f),l(this,o(f).apply(this,arguments))}return s(f,c),n(f,[{key:"render",value:function(){return u.createElement(h,null,u.createElement(y,{style:x.wrapper,onPress:function(){return p.alert('Alert Title',A)}},u.createElement(h,{style:x.button},u.createElement(E,null,"Alert with message and default button"))),u.createElement(y,{style:x.wrapper,onPress:function(){return p.alert('Alert Title',A,[{text:'OK',onPress:function(){}}])}},u.createElement(h,{style:x.button},u.createElement(E,null,"Alert with one button"))),u.createElement(y,{style:x.wrapper,onPress:function(){return p.alert('Alert Title',A,[{text:'Cancel',onPress:function(){}},{text:'OK',onPress:function(){}}])}},u.createElement(h,{style:x.button},u.createElement(E,null,"Alert with two buttons"))),u.createElement(y,{style:x.wrapper,onPress:function(){return p.alert('Alert Title',null,[{text:'Foo',onPress:function(){}},{text:'Bar',onPress:function(){}},{text:'Baz',onPress:function(){}}])}},u.createElement(h,{style:x.button},u.createElement(E,null,"Alert with three buttons"))),u.createElement(y,{style:x.wrapper,onPress:function(){return p.alert('Foo Title',A,'..............'.split('').map(function(t,n){return{text:'Button '+n,onPress:function(){}}}))}},u.createElement(h,{style:x.button},u.createElement(E,null,"Alert with too many buttons"))),u.createElement(y,{style:x.wrapper,onPress:function(){return p.alert('Alert Title',null,[{text:'OK',onPress:function(){}}],{cancelable:!1})}},u.createElement(h,{style:x.button},u.createElement(E,null,"Alert that cannot be dismissed"))),u.createElement(y,{style:x.wrapper,onPress:function(){return p.alert('',A,[{text:'OK',onPress:function(){}}])}},u.createElement(h,{style:x.button},u.createElement(E,null,"Alert without title"))))}}]),f})(u.Component),P=(function(c){function p(){return t(this,p),l(this,o(p).apply(this,arguments))}return s(p,c),n(p,[{key:"render",value:function(){return u.createElement(b,{title:'Alert'},u.createElement(w,null))}}]),p})(u.Component);P.title='Alert',P.description="Alerts display a concise and informative message and prompt the user to make a decision.";var x=f.create({wrapper:{borderRadius:5,marginBottom:5},button:{backgroundColor:'#eeeeee',padding:10}});m.exports={AlertExample:P,SimpleAlertExampleBlock:w}},666751,[3,4,5,8,9,11,15,666679]);