From 3e99b7ce723e3cf35000a103778700ad0d63707e Mon Sep 17 00:00:00 2001 From: lh_wang Date: Fri, 11 Sep 2015 16:59:19 +0800 Subject: [PATCH] add react bundle --- react/main.jsbundle | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/react/main.jsbundle b/react/main.jsbundle index 31c2eff..9dd4fde 100644 --- a/react/main.jsbundle +++ b/react/main.jsbundle @@ -1406,14 +1406,19 @@ ActivityIndicatorIOS= -React.ActivityIndicatorIOS;var CameraRoll=React.CameraRoll;var Image=React.Image;var ListView=React.ListView;var StyleSheet=React.StyleSheet;var View=React.View;var AppRegistry=React.AppRegistry;var Text=React.Text; +React.ActivityIndicatorIOS;var CameraRoll=React.CameraRoll;var Image=React.Image;var ListView=React.ListView;var StyleSheet=React.StyleSheet;var View=React.View;var AppRegistry=React.AppRegistry;var Text=React.Text;var VibrationIOS=React.VibrationIOS; -CameraRoll.saveImageWithTag('http://vczero.github.io/ctrip/mouse.jpg',function(){ -alert('保存图片成功');}, -function(){ -alert('保存图片失败');}); + + + + + + + + + @@ -1434,10 +1439,6 @@ alert('保存图片失败');}); -var fetchParams={ -first:5, -groupTypes:'All', -assetType:'Photos'}; @@ -1446,16 +1447,12 @@ var App=React.createClass({ render:function(){ return ( React.createElement(View,null, -React.createElement(Text,null,'摄像头'), +React.createElement(Text,null,'摄像头222'), React.createElement(Image,{style:{width:300,height:300},source:{uri:'assets-library://asset/asset.JPG?id=2A456415-B1AE-424A-9795-A0625A768EBD&ext=JPG'}})));}, -componentDidMount:function(){ -CameraRoll.getPhotos(fetchParams,function(data){ -console.log(data);}, -function(){ -alert('失败');});}}); +componentDidMount:function(){}}); @@ -1463,6 +1460,12 @@ alert('失败');});}}); + +VibrationIOS.vibrate(); + + + + AppRegistry.registerComponent('catapp',function(){return App;}); }); __d('react-native/Libraries/react-native/react-native.js',["React","ActivityIndicatorIOS","DatePickerIOS","Image","ListView","MapView","Modal","Navigator","NavigatorIOS","PickerIOS","ProgressViewIOS","ScrollView","SegmentedControlIOS","SliderIOS","SwitchIOS","TabBarIOS","Text","TextInput","TouchableHighlight","TouchableOpacity","TouchableWithoutFeedback","View","WebView","ActionSheetIOS","AdSupportIOS","AlertIOS","Animated","AppRegistry","AppStateIOS","AsyncStorage","CameraRoll","Dimensions","Easing","ImagePickerIOS","InteractionManager","LayoutAnimation","LinkingIOS","NetInfo","PanResponder","PixelRatio","PushNotificationIOS","Settings","StatusBarIOS","StyleSheet","VibrationIOS","RCTDeviceEventEmitter","RCTNativeAppEventEmitter","NativeModules","Platform","requireNativeComponent","EdgeInsetsPropType","PointPropType","LinkedStateMixin","ReactComponentWithPureRenderMixin","NativeModules","ReactUpdates","cloneWithProps","ReactFragment","update","ReactDefaultPerf","ReactTestUtils"],function(global, require, requireDynamic, requireLazy, module, exports) { 'use strict';