Browse Source

Create Shared Element screens only on Android (#1016)

Guy Carmeli 7 years ago
parent
commit
20ca76331c
2 changed files with 5 additions and 3 deletions
  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 View File


+ 5
- 3
example/src/app.js View File

@@ -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: {