effrenus / yandex-map-react-examples

http://effrenus.github.io/yandex-map-react-examples/
4 stars 3 forks source link

Styles don't work on Map component. #2

Open koala-lava opened 6 years ago

koala-lava commented 6 years ago
<Map onAPIAvailable={function () { console.log('API loaded'); }} center={[51.70858418, 94.43314205]} zoom={17} style={{
                width: '100%',
                height: '200px'
            }}>
                <Marker lat={this.props.lat} lon={this.props.lon} />
 </Map>

Used style prop. How can I style this Map component? I mean hardcoded width and height is not an option for me.