;
+ };
+}
+
+/**
+ * @deprecated Use NativeMethods instead.
+ */
+export type NativeMethodsMixin = NativeMethods;
+/**
+ * @deprecated Use NativeMethods instead.
+ */
+export type NativeMethodsMixinType = NativeMethods;
+
+/**
+ * Represents a native component, such as those returned from `requireNativeComponent`.
+ *
+ * @see https://github.com/facebook/react-native/blob/v0.62.0-rc.5/Libraries/Renderer/shims/ReactNativeTypes.js
+ *
+ * @todo This should eventually be defined as an AbstractComponent, but that
+ * should first be introduced in the React typings.
+ */
+export interface HostComponent
+ extends Pick<
+ React.ComponentClass
,
+ Exclude, 'new'>
+ > {
+ new (props: P, context?: any): React.Component & Readonly;
+}
diff --git a/types/tsconfig.json b/types/tsconfig.json
index 83a180a27f46d8..38b9529d8b2318 100644
--- a/types/tsconfig.json
+++ b/types/tsconfig.json
@@ -9,11 +9,6 @@
"types": [],
"jsx": "react",
"noEmit": true,
- "forceConsistentCasingInFileNames": true,
-
- // If the library is an external module (uses `export`), this allows your test file to import "mylib" instead of "./index".
- // If the library is global (cannot be imported via `import` or `require`), leave this out.
- "baseUrl": ".",
- "paths": {"react-native": ["."]}
+ "forceConsistentCasingInFileNames": true
}
}