Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions App/index.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import {
StyleSheet,
Text,
View,
WebView,
Image,
Dimensions
} from 'react-native';

import { WebView } from 'react-native-webview';

const win = Dimensions.get('window');
class ChartWeb extends Component {
constructor(props){
Expand Down Expand Up @@ -60,7 +61,7 @@ class ChartWeb extends Component {
}

// used to resize on orientation of display
reRenderWebView(e) {
reRenderWebView = (e) => {
this.setState({
height: e.nativeEvent.layout.height,
width: e.nativeEvent.layout.width,
Expand All @@ -75,7 +76,7 @@ class ChartWeb extends Component {

config = JSON.parse(config)
let concatHTML = `${this.state.init}${flattenObject(config)}${this.state.end}`;

return (
<View style={this.props.style}>
<WebView
Expand Down
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified index.android.js
100644 → 100755
Empty file.
Empty file modified index.ios.js
100644 → 100755
Empty file.
7 changes: 5 additions & 2 deletions package.json
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-highcharts",
"version": "1.1",
"version": "1.2.0",
"description":
"JavaScript implementation of a view container that can flip between its front and back, where the back has a console.log and the front is your aplication.",
"main": "react-native-highcharts.js",
Expand All @@ -25,5 +25,8 @@
"bugs": {
"url": "https://github.com/TradingPal/react-native-highcharts/issues"
},
"homepage": "https://github.com/TradingPal/react-native-highcharts#readme"
"homepage": "https://github.com/TradingPal/react-native-highcharts#readme",
"dependencies": {
"react-native-webview": "11.2.3"
}
}
7 changes: 4 additions & 3 deletions react-native-highcharts.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import {
StyleSheet,
Text,
View,
WebView,
Image,
Dimensions
} from 'react-native';

import { WebView } from 'react-native-webview';

const win = Dimensions.get('window');
class ChartWeb extends Component {
constructor(props){
Expand Down Expand Up @@ -60,7 +61,7 @@ class ChartWeb extends Component {
}

// used to resize on orientation of display
reRenderWebView(e) {
reRenderWebView = (e) => {
this.setState({
height: e.nativeEvent.layout.height,
width: e.nativeEvent.layout.width,
Expand All @@ -75,7 +76,7 @@ class ChartWeb extends Component {

config = JSON.parse(config)
let concatHTML = `${this.state.init}${flattenObject(config)}${this.state.end}`;

return (
<View style={this.props.style}>
<WebView
Expand Down