Skip to content

[Android] Text in custom callout grows vertically with width of marker #1959

@satori-ytolstoguzov

Description

@satori-ytolstoguzov

Is this a bug report?

Yes

Have you read the Installation Instructions?

Yes

Environment

"react-native": "0.51.0",
"react-native-maps": "git+https://github.com/react-community/react-native-maps.git" (0.18.3)

Steps to Reproduce

<MapView.Marker ...>
    ...
    <MapView.Callout tooltip><Text>This text should be one-liner</Text></MapView.Callout>
</MapView.Marker>

Expected Behavior

I expect it to be displayed same way non-tooltip text is:
Text is displayed in one line.
screen shot 2018-01-11 at 10 52 09 am

Actual Behavior

Text displayed vertically with same weird soft-wrapping:
screen shot 2018-01-11 at 10 52 38 am

Reproducible Demo

https://github.com/satori-ytolstoguzov/rn-maps-callout-offset/tree/android-callout-text
Add your API key to AndroidManifest.xml and do yarn install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions