Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
type State = {|
visibility: Animated.Value,
scrollAmount: Animated.Value,
initialOffset: ?{| x: number, y: number |},
|};
const useNativeDriver = Boolean(NativeModules.NativeAnimatedModule);
export default class TabBar extends React.Component, State> {
static propTypes = {
...SceneRendererPropType,
scrollEnabled: PropTypes.bool,
bounces: PropTypes.bool,
pressColor: TouchableItem.propTypes.pressColor,
pressOpacity: TouchableItem.propTypes.pressOpacity,
getLabelText: PropTypes.func,
getAccessible: PropTypes.func,
getAccessibilityLabel: PropTypes.func,
getTestID: PropTypes.func,
renderIcon: PropTypes.func,
renderLabel: PropTypes.func,
renderIndicator: PropTypes.func,
onTabPress: PropTypes.func,
onTabLongPress: PropTypes.func,
labelStyle: PropTypes.any,
style: PropTypes.any,
};
static defaultProps = {
getLabelText: ({ route }: Scene) =>
type State = {|
visibility: Animated.Value,
scrollAmount: Animated.Value,
initialOffset: ?{| x: number, y: number |},
|};
const useNativeDriver = Boolean(NativeModules.NativeAnimatedModule);
export default class TabBar extends React.Component, State> {
static propTypes = {
...SceneRendererPropType,
scrollEnabled: PropTypes.bool,
bounces: PropTypes.bool,
pressColor: TouchableItem.propTypes.pressColor,
pressOpacity: TouchableItem.propTypes.pressOpacity,
getLabelText: PropTypes.func,
getAccessible: PropTypes.func,
getAccessibilityLabel: PropTypes.func,
getTestID: PropTypes.func,
renderIcon: PropTypes.func,
renderLabel: PropTypes.func,
renderIndicator: PropTypes.func,
onTabPress: PropTypes.func,
onTabLongPress: PropTypes.func,
labelStyle: PropTypes.any,
style: PropTypes.any,
};
static defaultProps = {
getLabelText: ({ route }: Scene) =>
typeof route.title === 'string' ? route.title.toUpperCase() : route.title,