瀏覽代碼

Create Shared Element screens only on Android (#1016)

Guy Carmeli 7 年之前
父節點
當前提交
20ca76331c
共有 2 個文件被更改,包括 5 次插入3 次删除
  1. 0
    0
      example/img/list@1x.png
  2. 5
    3
      example/src/app.js

example/img/list@1x.android.png → example/img/list@1x.png 查看文件


+ 5
- 3
example/src/app.js 查看文件

@@ -10,7 +10,7 @@ registerScreens();
10 10
 const SHOW_SHARED_ELEMENT_SCREENS = false;
11 11
 
12 12
 const createTabs = () => {
13
-  const sharedElementScreens = [
13
+  const sharedElementScreens = Platform.OS === 'android' ? [
14 14
     {
15 15
       label: 'Card',
16 16
       screen: 'example.CardScreen',
@@ -23,7 +23,7 @@ const createTabs = () => {
23 23
       icon: require('../img/list.png'),
24 24
       title: 'Shared Element Transition'
25 25
     }
26
-  ];
26
+  ] : null;
27 27
 
28 28
   let tabs = [
29 29
     {
@@ -63,7 +63,9 @@ Navigation.startTabBasedApp({
63 63
   appStyle: {
64 64
     tabBarBackgroundColor: '#0f2362',
65 65
     tabBarButtonColor: '#ffffff',
66
-    tabBarSelectedButtonColor: '#63d7cc'
66
+    tabBarSelectedButtonColor: '#63d7cc',
67
+    tabFontFamily: 'BioRhyme-Bold',
68
+    forceTitlesDisplay: true
67 69
   },
68 70
   drawer: {
69 71
     left: {