How to use the react-native-tab-view/src/TouchableItem.propTypes function in react-native-tab-view

To help you get started, we’ve selected a few react-native-tab-view examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github EvanBacon / react-navigation-web-responsive-tabs-demo / components / CustomTabBar / TabBar.js View on Github external
};

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) =>
github EvanBacon / react-navigation-web-responsive-tabs-demo / components / CustomTabBar / TabBar.js View on Github external
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,

react-native-tab-view

Tab view component for React Native

MIT
Latest version published 11 months ago

Package Health Score

91 / 100
Full package analysis