Skip to main content

Props

Style Props

externalTextStyles

External text input styles. You can use specific text input styles.

Info

You can use useAnimatedStyle with externalTextStyles prop like below.

const animatedTextStyle = useAnimatedStyle(
() => ({
fontSize: sharedSliderValue.value,
}),
[sharedSliderValue.value],
);
externalTextStyles = {animatedTextStyle};
TypeDefaultRequired
TextStyle | ViewStyle{}No

externalBorderStyles

External border styles. You can use specific border styles.

TypeDefaultRequired
ViewStyle{}No

Component Props

cornerComponents

Array of custom corner components.

const _cornerComponent = [
{
side: 'TR', // Top-Right
customCornerComponent: () => <View/>
},
{
side: 'BL', // Bottom-Left
customCornerComponent: () => <View/>
},
];

cornerComponents={_cornerComponent}

NameTypeDefaultRequired
side'TR' | 'TL' | 'BL' | 'BR'undefinedNo
customCornerComponentFunctionundefinedNo

resizerSnapPoints

Array of resizer snap points.

  resizerSnapPoints={['right', 'left']}
TypeDefaultRequired
'right' | 'left' | 'bottom' | 'top'undefinedNo

rotationComponent

Object of rotationComponent.

const _rotateComponent = {
side: 'bottom',
customRotationComponent: () => <IconButton iconName={ICONS.ROTATE_ICON} />,
};
rotationComponent={_rotateComponent}
NameTypeDefaultRequired
side'bottom' | 'top' | 'left'undefinedNo
customRotationComponentFunctionundefinedNo

Callbacks

onItemActive

Callback when item clicked.

TypeDefaultRequired
functionundefinedNo

Provided Default Text Input Props

placeholder

Specific text input placeholder.

TypeDefaultRequired
string'Lorem Ipsum...'No

onChangeText

Callback when text changed.

TypeDefaultRequired
functionundefinedNo

value

Text input value.

TypeDefaultRequired
stringundefinedNo

visible

Set visibility.

TypeDefaultRequired
booleantrueNo