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

+ 10
- 0
src/views/sharedElementTransition.ios.js View File

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