mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-05 21:24:25 +00:00
requireNativeComponent now only takes a string and returns a string. See the definition here: 1151c096da/Libraries/ReactNative/requireNativeComponent.js (L24-L27).
The return type here is specified as `React.ReactType`, which is a union type that includes strings. We can't use `string` because TypeScript treats it as an intrinsic element like `div` and thinks it has no props.
Updated the corresponding test code too.