(name)
| 1 | import React from 'react'; |
| 2 | |
| 3 | const createComponent = function(name) { |
| 4 | return class extends React.Component { |
| 5 | // overwrite the displayName, since this is a class created dynamically |
| 6 | static displayName = name; |
| 7 | |
| 8 | render() { |
| 9 | return React.createElement(name, this.props, this.props.children); |
| 10 | } |
| 11 | }; |
| 12 | }; |
| 13 | |
| 14 | // Mock all react-native-svg exports |
| 15 | // from https://github.com/magicismight/react-native-svg/blob/master/index.js |
no outgoing calls
no test coverage detected
searching dependent graphs…