Skip to content

Commit

Permalink
Make HostComponent inexact (#17412)
Browse files Browse the repository at this point in the history
  • Loading branch information
elicwhite authored and gaearon committed Dec 18, 2019
1 parent 4c27037 commit 9354dd2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/react-native-renderer/src/ReactNativeTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,7 @@ export type NativeMethods = {
};

export type NativeMethodsMixinType = NativeMethods;
export type HostComponent<T> = AbstractComponent<
T,
$ReadOnly<$Exact<NativeMethods>>,
>;
export type HostComponent<T> = AbstractComponent<T, $ReadOnly<NativeMethods>>;

type SecretInternalsType = {
NativeMethodsMixin: NativeMethodsMixinType,
Expand Down

0 comments on commit 9354dd2

Please sign in to comment.