Yes, but only if the child component is class component.
Because functional component does not have an instance.
Let's say your child component is a class-based then you just need to have a createRef() inside parent and then pass that to the child.
Then, you can collect that instance from .current
property of the ref and then trigger it.
Example,
Parent Component's constructor
this.childRef = React.createRef();
Parent Component's render
render() {
return <ChildComponent ref={this.childRef} />
}
Child Component
class ChildComponent extends React.Component {
constructor(props) {
super(props);
}
doSomeThing = () => {}
And then at any event handler, you can execute child function as this.childRef.current.doSomeThing();
Reference: https://reactjs.org/docs/refs-and-the-dom.html#accessing-refs