React native 如何在笑话中模仿图像的类型(反应为本机)

React native 如何在笑话中模仿图像的类型(反应为本机),react-native,mocking,snapshot,jestjs,React Native,Mocking,Snapshot,Jestjs,在使用react-native和react-native路由器流量的jest测试中,我有以下错误 Runtime Error - TypeError: Cannot read property 'source' of undefined at Object.<anonymous> (node_modules/react-native-router-flux/src/NavBar.js:155:45) at Object.<anonymous&

在使用react-native和react-native路由器流量的jest测试中,我有以下错误

Runtime Error
  - TypeError: Cannot read property 'source' of undefined
        at Object.<anonymous> (node_modules/react-native-router-flux/src/NavBar.js:155:45)
        at Object.<anonymous> (node_modules/react-native-router-flux/src/DefaultRenderer.js:21:13)
        at Object.<anonymous> (node_modules/react-native-router-flux/index.js:3:22)
运行时错误
-TypeError:无法读取未定义的属性“source”
反对。(node_modules/react native router flux/src/NavBar.js:155:45)
反对。(node_modules/react native router flux/src/DefaultRenderer.js:21:13)
反对。(node_modules/react native router flux/index.js:3:22)
这就是引起麻烦的线路

backButtonImage:Image.propTypes.source

所以我猜Image.propTypes的定义不正确

我怎样才能解决这个问题