Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 20x 45x 44x 3x 24x 24x 3x 8x 8x | /* @noflow */ import React, { createElement } from 'react' import { Text } from 'react-native' import * as StackUtils from './../StackUtils' export const componentFactory = message => ({ match }) => { if (!match && !message) return null return ( <Text> {(match && Object.values(match.params).length > 0 && JSON.stringify(match.params)) || message} </Text> ) } export const renderCardView = ({ navigationState, renderCard }) => { const route = navigationState.routes[navigationState.index] return renderCard(route) } export const renderTabView = ({ navigationState, renderTab }) => { const route = navigationState.routes[navigationState.index] return renderTab(route) } |