react-native-paper
react-native-paper copied to clipboard
feat:Multi-line buttons should be possible via configuration
Motivation Multi-line buttons should be possible via configuration.
Related issue (https://github.com/callstack/react-native-paper/discussions/2584#discussioncomment-10715321)
Test plan <Button icon="content-save-edit" onLongPress={handleSubmit(submit)} onPress={() => Alert.alert('Press & hold')} numberOfLines={2} > A short label{'\n'}<Text style={{ fontSize: 8, margin: 0, lineHeight: 12 }}>(Press & hold)</Text> </Button>
image image