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