react-native-dialog
react-native-dialog copied to clipboard
Allow children for Dialog.Button
Ask your Question
Does it make sense to extend <Dialog.Button /> to render children? My use case is that I e.g. display a confirmation dialog. Once the user presses "Ok" I want to disable the button (already possible) and display a loading indicator:
<Dialog.Button disabled={loading}>
{loading && <LoadingIndicator />}
<Text>Confirm</Text>
</Dialog.Button>
with the current implementation via label this is not possible.
2 years later but, would it be possible?
those buttons are the only part we can't customize; even the fact that the label are forced uppercase can't be adjusted.