TradingPal / react-native-highcharts

📈 Add Highcharts charts to react-native app for IOS and Android
https://github.com/TradingPal/react-native-highcharts
256 stars 158 forks source link

In the Android emulator 4.1, html can not be resolved only show html characters #46

Closed hlerenow closed 6 years ago

hlerenow commented 6 years ago

In the Android emulator 4.1, html can not be resolved only show html characters

hlerenow commented 6 years ago

I solved this problem, I removed baseUrl: 'web /',finally,the code lke this

          <View style={this.props.style}>
              <WebView
                  onLayout={this.reRenderWebView}
                  style={styles.full}
                  source={{ html: concatHTML }}
                  javaScriptEnabled={true}
                  domStorageEnabled={true}
                  scalesPageToFit={true}
                  scrollEnabled={false}
                  automaticallyAdjustContentInsets={true}
              />
          </View>

on Android 4.11,the chart can running normal

Infinity0106 commented 6 years ago

thks for the solution I didn't test on that android version