Skip to content

Commit 7067d04

Browse files
Add onPress
1 parent 52461fd commit 7067d04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/Echarts/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default class App extends Component {
2121
height: this.props.height || 400,
2222
}}
2323
source={require('./tpl.html')}
24+
onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null}
2425
/>
2526
</View>
2627
);

0 commit comments

Comments
 (0)