We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 405e9f7 commit 4e18c20Copy full SHA for 4e18c20
src/components/Echarts/index.js
@@ -1,5 +1,5 @@
1
import React, { Component } from 'react';
2
-import { WebView, View, StyleSheet } from 'react-native';
+import { WebView, View, StyleSheet, Platform } from 'react-native';
3
import renderChart from './renderChart';
4
import echarts from './echarts.min';
5
@@ -21,7 +21,7 @@ export default class App extends Component {
21
height: this.props.height || 400,
22
backgroundColor: this.props.backgroundColor || 'transparent'
23
}}
24
- scalesPageToFit={true}
+ scalesPageToFit={Platform.OS !== 'ios'}
25
source={require('./tpl.html')}
26
onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null}
27
/>
0 commit comments