|
@@ -30,11 +30,12 @@ class CustomTransitionDestination extends Component {
|
30
|
30
|
pop() {
|
31
|
31
|
Navigation.pop(this.props.componentId, {
|
32
|
32
|
customTransition: {
|
33
|
|
- animations: [{ type: 'sharedElement', fromId: 'title2', toId: 'title1', startDelay: 0, springVelocity: 0.2, duration: 0.5 },
|
|
33
|
+ animations: [
|
|
34
|
+ { type: 'sharedElement', fromId: 'title2', toId: 'title1', startDelay: 0, springVelocity: 0.2, duration: 0.5 },
|
34
|
35
|
{ type: 'sharedElement', toId: 'image1', fromId: 'customDestinationImage', startDelay: 0, springVelocity: 0.2, duration: 0.5 },
|
35
|
36
|
{ type: 'sharedElement', toId: 'image2', fromId: 'customDestinationImage2', startDelay: 0, duration: 0.8 },
|
36
|
|
- { fromId: 'image4', startY: 50, startX: 50, startAlpha: 0, startDelay: 0, duration: 0.8, springVelocity: 0.5 },
|
37
|
|
- { fromId: 'customDestinationParagraph', endY: 50, endX: 50, endAlpha: 0, startAlpha: 1, startDelay: 0, duration: 0.8 }
|
|
37
|
+ { fromId: 'image4', x: { from: 50}, y: { from: 50}, startAlpha: 0, startDelay: 0, duration: 0.8, springVelocity: 0.5 },
|
|
38
|
+ { fromId: 'customDestinationParagraph', y: { to: 50}, x: { to: 50}, endAlpha: 0, startAlpha: 1, startDelay: 0, duration: 0.8 }
|
38
|
39
|
],
|
39
|
40
|
duration: 0.8
|
40
|
41
|
}
|