React-native-mapbox-gl: My Callouts don麓t render in iOS simulator

Created on 25 Aug 2018  路  4Comments  路  Source: nitaliano/react-native-mapbox-gl

Hello. I'm having an error where the callouts don麓t appear when I click on the point. This happens in iOS Simulator (I don麓t have an iOS device to try). I don麓t have problems in Android devices or simulator.

My dependencies in package.json:
"dependencies": {
"@mapbox/react-native-mapbox-gl": "^6.1.2",
"native-base": "^2.7.0",
"react": "^16.4.1",
"react-native": "^0.56.0",
"react-native-communications": "^2.2.1",
"react-native-onesignal": "^3.2.6",
"react-native-splash-screen": "^3.1.1",
"react-navigation": "^2.11.2"
},

I attached you my current code.
Oficinas.ios.txt

Most helpful comment

Hello,
I had the same issue...
Just add a title prop to Point Annotation...

key='pointAnnotation'
id='pointAnnotation'
title='Look! An annotation!' <----- HERE
coordinate={[11.254, 43.772]}>

    <View style={styles.annotationContainer}>
      <View style={styles.annotationFill} />
    </View>
    <MapboxGL.Callout title='Look! An annotation!' style={{width: 152, height: 80}} />
  </MapboxGL.PointAnnotation>

All 4 comments

Having same issue. Tried applying styles to Callout and no change.

"@mapbox/react-native-mapbox-gl": "^6.1.3",
"react-native": "0.56.0",

Regards

Hello,
I had the same issue...
Just add a title prop to Point Annotation...

key='pointAnnotation'
id='pointAnnotation'
title='Look! An annotation!' <----- HERE
coordinate={[11.254, 43.772]}>

    <View style={styles.annotationContainer}>
      <View style={styles.annotationFill} />
    </View>
    <MapboxGL.Callout title='Look! An annotation!' style={{width: 152, height: 80}} />
  </MapboxGL.PointAnnotation>

@mumapu Your solutions works excellent! Thanks a lot!

@mumapu thanks for this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

madroneropaulo picture madroneropaulo  路  4Comments

Gp2mv3 picture Gp2mv3  路  3Comments

lernerbot picture lernerbot  路  3Comments

EugenePisotsky picture EugenePisotsky  路  4Comments

digitaldavenyc picture digitaldavenyc  路  4Comments