Button in React Native Maps Callout without Title on Android
Current behaviour
The title is not showing on Android when React Native Paper's <Button /> element is nested into React Native Maps's <Callout />. The problem does not occur on iOS simulators and devices, just on Android simulators and devices.
Expected behaviour
The title should be shown, react-native's <Button /> works as expected and the title is shown.
Code sample
react-native's <Button />
import { Button } from 'react-native';
...
<Button
title="Press me"
onPress={() => Alert.alert('Simple Button pressed')}
/>
React Native Paper's <Button />
import { Button } from 'react-native-paper';
...
<Button icon="camera" mode="contained" onPress={() => console.log('Pressed')}>
Press me
</Button>
Screenshots (if applicable)
react-native's <Button />

React Native Paper's <Button />

What have you tried
Running code samples in simulators and my application on real devices. The solution to fix the problem in my app I've committed in https://github.com/tamotam-com/tamotam-app/commit/81fabea7e821ddbfea636e6a6ee4684a615bfc63, but I'm pretty sure the code shouldn't be depended on platform.
Your Environment
| software | version |
|---|---|
| ios or android | android |
| react-native | 0.64.3 |
| react-native-paper | ^4.9.2 |
| node | v16.15.0 |
| npm or yarn | npm |
| expo sdk | 6.0.1 |
Couldn't find version numbers for the following packages in the issue:
-
react-native -
react-native-paper -
react-native-vector-icons -
npm -
yarn -
expo
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.
Hey! Thanks for opening the issue. The issue doesn't seem to contain a link to a repro (a snack.expo.dev link or link to a GitHub repo under your username).
Can you provide a minimal repro which demonstrates the issue? A repro will help us debug the issue faster. Please try to keep the repro as small as possible and make sure that we can run it without additional setup.
Hey @danieldanielecki, are you able to provide basic repro e.g. on snack, so we can have the repro sample on which we can investigate the issue and test? Can you also try the latest stable version?
Hello 👋, this issue has been open for more than a month without a repro or any activity. If the issue is still present in the latest version, please provide a repro or leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution or workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix it.