mirror of
https://github.com/wu736139669/vczero.github.io.git
synced 2026-08-05 06:23:38 +00:00
add react bundle
This commit is contained in:
+18
-15
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user