How to use react-native-bpk-component-icon - 9 common examples

To help you get started, we’ve selected a few react-native-bpk-component-icon 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 Skyscanner / backpack / native / packages / react-native-bpk-component-flat-list / src / BpkFlatListItem.ios.js View on Github external
accessibilityComponentType="button"
        accessibilityLabel={title}
        accessibilityTraits={['button']}
        style={styles.outer}
        {...rest}
      >
        
        
      
    );
  }
}
github Skyscanner / backpack / native / packages / react-native-bpk-component-phone-input / src / BpkDialingCodeListItem.ios.js View on Github external
accessibilityComponentType="button"
        accessibilityLabel={`${dialingCode} ${name}`}
        accessibilityTraits={['button']}
        style={styles.listItem}
        {...rest}
      >
        
        
      
    );
  }
}
github Skyscanner / backpack / native / packages / react-native-bpk-component-section-list / src / BpkSectionListItem.ios.js View on Github external
accessibilityComponentType="button"
        accessibilityLabel={title}
        accessibilityTraits={['button']}
        onPress={onPress}
        style={styles.outer}
      >
        
        
      
    );
  }
}
github Skyscanner / backpack / native / packages / react-native-bpk-component-badge / stories.js View on Github external
},
  light: {
    backgroundColor: colorGray700,
  },
  outline: {
    backgroundColor: colorGray700,
  },
  inverse: {
    backgroundColor: colorGray700,
  },
});

const capitalize = input => input.charAt(0).toUpperCase() + input.slice(1);

const iconSets = {
  single: [],
  multiple: [, ],
};

const generateBadgeStory = (
  contents: Array,
  config: {
    docked?: $Keys,
    icons?: string,
  } = {},
) => {
  const badgeWrapperStyle = [style.badgeWrapper];
  if (config.docked) {
    badgeWrapperStyle.push(style[config.docked]);
  } else {
    badgeWrapperStyle.push(style.center);
  }
github Skyscanner / backpack / native / packages / react-native-bpk-component-badge / stories.js View on Github external
light: {
    backgroundColor: colorGray700,
  },
  outline: {
    backgroundColor: colorGray700,
  },
  inverse: {
    backgroundColor: colorGray700,
  },
});

const capitalize = input => input.charAt(0).toUpperCase() + input.slice(1);

const iconSets = {
  single: [],
  multiple: [, ],
};

const generateBadgeStory = (
  contents: Array,
  config: {
    docked?: $Keys,
    icons?: string,
  } = {},
) => {
  const badgeWrapperStyle = [style.badgeWrapper];
  if (config.docked) {
    badgeWrapperStyle.push(style[config.docked]);
  } else {
    badgeWrapperStyle.push(style.center);
  }
  const badges = Object.keys(BADGE_TYPES).map(i => (
github Skyscanner / backpack / native / packages / react-native-bpk-component-nudger / src / BpkNudger.js View on Github external
onChange,
    style,
    value,
  } = props;

  const adjustedValue = Math.floor(clamp(value, min, max));
  const decreaseDisabled = adjustedValue <= min;
  const increaseDisabled = adjustedValue >= max;

  return (
github Skyscanner / backpack / native / packages / react-native-bpk-component-nudger / src / BpkNudger.js View on Github external
onPress={() => onChange(adjustedValue - 1)}
        title={decreaseButtonLabel}
        style={styles.buttonMinus}
      />
      
        {adjustedValue}
      
       onChange(adjustedValue + 1)}
        title={increaseButtonLabel}
        style={styles.buttonPlus}
      />
    
  );
};
github Skyscanner / backpack / native / packages / react-native-bpk-component-button / stories.js View on Github external
const getIconType = type =>
  type === 'destructive' ? icons.trash : icons['long-arrow-right'];

react-native-bpk-component-icon

Backpack React Native icon component.

Apache-2.0
Latest version published 5 years ago

Package Health Score

70 / 100
Full package analysis

Similar packages