(devToolsConfig)
| 20350 | } |
| 20351 | |
| 20352 | function injectIntoDevTools(devToolsConfig) { |
| 20353 | var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; |
| 20354 | |
| 20355 | return injectInternals(_assign({}, devToolsConfig, { |
| 20356 | overrideProps: overrideProps, |
| 20357 | findHostInstanceByFiber: function (fiber) { |
| 20358 | var hostFiber = findCurrentHostFiber(fiber); |
| 20359 | if (hostFiber === null) { |
| 20360 | return null; |
| 20361 | } |
| 20362 | return hostFiber.stateNode; |
| 20363 | }, |
| 20364 | findFiberByHostInstance: function (instance) { |
| 20365 | if (!findFiberByHostInstance) { |
| 20366 | // Might not be implemented by the renderer. |
| 20367 | return null; |
| 20368 | } |
| 20369 | return findFiberByHostInstance(instance); |
| 20370 | } |
| 20371 | })); |
| 20372 | } |
| 20373 | |
| 20374 | // This file intentionally does *not* have the Flow annotation. |
| 20375 | // Don't add it. See `./inline-typed.js` for an explanation. |
no test coverage detected