React native 如何在函数组件内部的函数上使用jest.spyOn

React native 如何在函数组件内部的函数上使用jest.spyOn,react-native,jestjs,enzyme,React Native,Jestjs,Enzyme,如何在函数组件内部的函数上使用jest.spyOn

如何在函数组件内部的函数上使用jest.spyOn