react-native-dialog icon indicating copy to clipboard operation
react-native-dialog copied to clipboard

Allow children for Dialog.Button

Open nephix opened this issue 3 years ago • 1 comments

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.

nephix avatar Apr 20 '22 09:04 nephix

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.

pierroo avatar Sep 06 '24 19:09 pierroo