Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

react-native View config getter callback for component 'rect' must be a function (received 'undefined')

$
0
0

I am trying to integrate a package known as react-native-simple-maps. I have attached the code below.

import React, { Component } from "react"import ReactDOM from "react-dom"import { ComposableMap, ZoomableGroup, Geographies, Geography } from "react-simple-maps"import {    View} from 'react-native'export default class PlotlyGlobal extends React.Component {    render() {        return (<View><ComposableMap><ZoomableGroup><Geographies geography={"./india.topo.json"}>                            {(geographies, projection) =>                                geographies.map(geography => (<Geography key={geography.id} geography={geography} projection={projection} />                                ))                            }</Geographies></ZoomableGroup></ComposableMap></View>        )    }}

Not able to display the map. Please do guide me. I am new to React-Native.


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>