6

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

Adam Katz
  • 6,999
  • 11
  • 42
  • 74

1 Answers1

5

There is a prop "enabled" use that.

<RectButton onPress={onPress} enabled={!isDisabled}></RectButton>
Hamas Hassan
  • 830
  • 6
  • 15