I am using NativeBase with React Native.
NativeBase buttons created this way:
<Button warning>
<Text>Hello</Text>
</Button>
Instead of warning you can use different types, such as info or success.
Now, I want to create those buttons based on a prop and trying to do something like this:
<Button {this.props.type}>
<Text>Hello</Text>
</Button>
But I cannot find a way to do it because this prop does not have a value.
Is it possible to pass props without a value?