'use strict' ; import React from 'react' ; import { MathViewInjectedProps , MathViewProps } from '../common' ; import { ErrorComponent } from '../Error' ; import { mathViewRender } from '../hooks' ; import MathBaseView from './MathBaseView' ; param props param ref const MathView = mathViewRender ( ( props , ref ) => { return ( < MathBaseView { ... props } ref = { ref } / > ) ; } , { async : true } ) ; MathBaseView . defaultProps = { resizeMode : 'contain' , config : { } } as Partial < MathViewInjectedProps > ; MathView . defaultProps = { ... MathBaseView . defaultProps , renderError : ErrorComponent } as Partial < MathViewProps > ; export default MathView ;