Browse Source

Minor tweeks to Masonry screen

- Adjust animation values
- Add drawUnderNavBar: true since it’s hidden. Should be done by the framework by default
Guy Carmeli 7 years ago
parent
commit
cb0945dfdf

+ 3
- 2
example/src/screens/transitions/sharedElementTransitions/Masonry/Item.js View File

2
 import { StyleSheet, View, Text, Image } from 'react-native';
2
 import { StyleSheet, View, Text, Image } from 'react-native';
3
 import { SharedElementTransition } from 'react-native-navigation';
3
 import { SharedElementTransition } from 'react-native-navigation';
4
 
4
 
5
-const SHOW_DURATION = 200;
6
-const HIDE_DURATION = 300;
5
+const SHOW_DURATION = 240;
6
+const HIDE_DURATION = 200;
7
 
7
 
8
 class Item extends React.Component {
8
 class Item extends React.Component {
9
 
9
 
10
     static navigatorStyle = {
10
     static navigatorStyle = {
11
         navBarHidden: true,
11
         navBarHidden: true,
12
+        drawUnderNavBar: true
12
     };
13
     };
13
 
14
 
14
     render() {
15
     render() {