Skip to content

Commit 4024e29

Browse files
committed
update with a componentFolder
1 parent 4cb5d95 commit 4024e29

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ npm install -g expo-cli
1818

1919
expo init my-app
2020
cd my-app
21-
expo start
2221
```
2322
You can find more information here: [React Native: Getting Started](https://facebook.github.io/react-native/docs/getting-started)
2423

@@ -39,19 +38,24 @@ import * as FlexmonsterReactNative from 'react-native-flexmonster';
3938
Insert a pivot table into `App.js`:
4039
4140
```bash
42-
class FlexmonsterReactNativeApp extends React.Component {
41+
class App extends React.Component {
4342
render() {
4443
return (
4544
<View style={{ flex: 1 }}>
4645
<FlexmonsterReactNative.Pivot
47-
licenseKey="YOUR_LICENSE_KEY"
4846
report="https://cdn.flexmonster.com/reports/report.json"
4947
/>
5048
</View>
5149
);
5250
}
5351
}
5452
```
53+
For better user experience, we recommend setting orientation the screen to `landscape`.
54+
55+
Now you are ready to run the application.
56+
```bash
57+
expo start
58+
```
5559
5660
## <a name="usage"></a>Usage ##
5761

build/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-flexmonster",
3-
"version": "2.7.23-6",
3+
"version": "2.7.23-7",
44
"license": "MIT",
55
"description": "React Native Module for Flexmonster Pivot Table & Charts",
66
"main": "./build/index.js",

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ export class Pivot extends React.Component {
356356
<script>
357357
new Flexmonster({
358358
container: "#pivot-container",
359-
componentFolder: "",
359+
componentFolder: "https://cdn.flexmonster.com/",
360360
toolbar: true,
361361
height: ${height},
362362
width: ${width},

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ module.exports = [{
3737
"react-native-webview": "commonjs react-native-webview",
3838
'prop-types': 'commonjs prop-types'
3939
}
40-
}];
40+
}];

0 commit comments

Comments
 (0)