LogoCraftReactNative
Components

ButtonRound

A circular button component designed for displaying an icon. Commonly used for navigation actions or action buttons.

Installation

npx @craftreactnative/ui add ButtonRound

Usage

Screen.tsx
import { ButtonRound } from '@/craftrn-ui/components/ButtonRound';
 
export const Screen = () => (
  <ButtonRound
    onPress={() => {}}
    size="small"
    renderContent={({ iconSize, iconColor }) => (
      <ChevronLeft size={iconSize} color={iconColor} />
    )}
  />
);

Props

PropTypeDefault

Dependencies

2 packages
react-native-reanimated
react-native-unistyles
Required imports
craftrn-ui/components/PressableScale

On this page