Browse Source

SharedElement is a simple View on iOS

Guy Carmeli 7 years ago
parent
commit
b60ad56159

src/views/sharedElementTransition.js → src/views/sharedElementTransition.android.js View File

@@ -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 View File

@@ -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
+}