React native 如何在地图上方渲染图像?

React native 如何在地图上方渲染图像?,react-native,expo,React Native,Expo,我试图在地图上渲染一个看起来像图像的按钮。但是,图像不会显示 <MapView.Callout> <View style={styles.callout}> <Image // style={{width: 66, height: 58}} source={{ uri: "../assets/sendSonar.png" }} >

我试图在地图上渲染一个看起来像图像的按钮。但是,图像不会显示

    <MapView.Callout>
          <View style={styles.callout}>
           <Image
              // style={{width: 66, height: 58}}
              source={{ uri: "../assets/sendSonar.png" }}
            >
          </Image>
          </View>
        </MapView.Callout>



如果我用它来显示一个按钮,它工作得很好

        <MapView.Callout>
          <View style={styles.callout}>
            <Button title="Send Sonar" onPress={this.sendLocation} />
          </View>
        </MapView.Callout>


我错过了什么?


您可以对位置使用“绝对”选项

尝试将图像包装在
TouchableOpacity
内,并为图像提供高度和宽度样式。我尝试了此操作,但仍然看不到图像