(name, page, isTabActive, onPressHandler)
| 36 | }, |
| 37 | |
| 38 | renderTab(name, page, isTabActive, onPressHandler) { |
| 39 | const { activeTextColor, inactiveTextColor, textStyle, } = this.props; |
| 40 | const textColor = isTabActive ? activeTextColor : inactiveTextColor; |
| 41 | const fontWeight = isTabActive ? 'bold' : 'normal'; |
| 42 | |
| 43 | return <Button |
| 44 | style={{flex: 1, }} |
| 45 | key={name} |
| 46 | accessible={true} |
| 47 | accessibilityLabel={name} |
| 48 | accessibilityTraits='button' |
| 49 | onPress={() => onPressHandler(page)} |
| 50 | > |
| 51 | <View style={[styles.tab, this.props.tabStyle, ]}> |
| 52 | <Text style={[{color: textColor, fontWeight, }, textStyle, ]}> |
no outgoing calls
no test coverage detected
searching dependent graphs…