yungsters 6acd66ee67 Define HostInstance type for React Native (#31101)
## Summary

Creates a new `HostInstance` type for React Native, to more accurately
capture the intent most developers have when using the `NativeMethods`
type or `React.ElementRef<HostComponent<T>>`.

Since `React.ElementRef<HostComponent<T>>` is typed as
`React.AbstractComponent<T, NativeMethods>`, that means
`React.ElementRef<HostComponent<T>>` is equivalent to `NativeMethods`
which is equivalent to `HostInstance`.

## How did you test this change?

```
$ yarn
$ yarn flow fabric
```

DiffTrain build for [459fd418cf](https://github.com/facebook/react/commit/459fd418cfbd1f2f1be58efd8c89a0e0ecfb6d44)
2024-10-01 17:33:10 -07:00
2023-02-20 16:27:42 +00:00
S
Description
Languages
JavaScript 67.1%
TypeScript 29.4%
HTML 1.5%
CSS 1.1%
C++ 0.6%
Other 0.2%