瀏覽代碼

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 年之前
父節點
當前提交
cb0945dfdf
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      example/src/screens/transitions/sharedElementTransitions/Masonry/Item.js

+ 3
- 2
example/src/screens/transitions/sharedElementTransitions/Masonry/Item.js 查看文件

@@ -2,13 +2,14 @@ import React from 'react';
2 2
 import { StyleSheet, View, Text, Image } from 'react-native';
3 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 8
 class Item extends React.Component {
9 9
 
10 10
     static navigatorStyle = {
11 11
         navBarHidden: true,
12
+        drawUnderNavBar: true
12 13
     };
13 14
 
14 15
     render() {