how to disable RectButton from react-native-gesture-handler

Viewed 1441

title is pretty much the question. On react-native buttons ie touchableOpacity you have the disabled prop but it doesn't appear to work on RectButton

<RectButton onPress={onPress} disabled={isDisabled}></RectButton>

doesn't work

1 Answers

There is a prop "enabled" use that.

<RectButton onPress={onPress} enabled={!isDisabled}></RectButton>
Related