UNPKG

react-native-charts-wrapper

Version:
16 lines (13 loc) 429 B
import React, {Component} from 'react'; import { UIManager, findNodeHandle} from 'react-native'; export default function ScaleEnhancer(Chart) { return class ScaleExtended extends Chart { fitScreen() { UIManager.dispatchViewManagerCommand( findNodeHandle(this.getNativeComponentRef()), UIManager.getViewManagerConfig(this.getNativeComponentName()).Commands.fitScreen, [] ); } } }