INNER CODE UNIT · JavaScript

_renderButtonIcon

mastermoo/react-native-action-button · ActionButton.js:161

  const _renderButtonIcon = () => {
    const {
      icon,
      renderIcon,
      btnOutRangeTxt,
      buttonTextStyle,
      buttonText
    } = props;
    if (renderIcon) return renderIcon(active);
    if (icon) {
      console.warn(
        "react-native-action-button: The `icon` prop is deprecated! Use `renderIcon` instead."
      );
      return icon;
    }

    const textColor = buttonTextStyle.color || "rgba(255,255,255,1)";

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…