// There is a prop "enabled" use that. <RectButton onPress={onPress} enabled={!isDisabled}></RectButton>