瀏覽代碼

SharedElement is a simple View on iOS

Guy Carmeli 7 年之前
父節點
當前提交
b60ad56159
共有 2 個文件被更改,包括 11 次插入1 次删除
  1. 1
    1
      src/views/sharedElementTransition.android.js
  2. 10
    0
      src/views/sharedElementTransition.ios.js

src/views/sharedElementTransition.js → src/views/sharedElementTransition.android.js 查看文件

@@ -5,7 +5,7 @@ import {
5 5
 
6 6
 const SharedElementTransitionModule = requireNativeComponent('SharedElementTransition', null);
7 7
 
8
-export default class SharedElementTransition extends React.Component {
8
+export default class SharedElementTransition extends Component {
9 9
   render() {
10 10
     return <SharedElementTransitionModule {...this.props} />;
11 11
   }

+ 10
- 0
src/views/sharedElementTransition.ios.js 查看文件

@@ -0,0 +1,10 @@
1
+import React, {Component, View} from 'react';
2
+import {
3
+  requireNativeComponent
4
+} from 'react-native';
5
+
6
+export default class SharedElementTransition extends Component {
7
+  render() {
8
+    return <View />;
9
+  }
10
+}