Function pressableFeedbackStyle

  • Pressable styling helper for adding proper feedback to the user Use on Pressable as style={(state) => pressableFeedbackStyle(state, this.myStyle)}

    Parameters

    • state: PressableStateCallbackType

      State from the style function

    • style: StyleProp<ViewStyle>

      Primary style to add to the pressable

    • Optional customStyle: ((state) => StyleProp<ViewStyle>)

      Function to use custom styling for state changes. If using may not need this helper at all. But also not bad to have everything in one flow.

        • (state): StyleProp<ViewStyle>
        • Parameters

          • state: PressableStateCallbackType

          Returns StyleProp<ViewStyle>

    Returns StyleProp<ViewStyle>

    • Styled for handling press style

Generated using TypeDoc