@types/react-native 用于 react-native 0.59.x

Ren*_*soo 6 typescript definitelytyped react-native

我正在使用react-native 0.59.90.60.x由于外部阻止程序,还不能升级到)。

@types/react-native唯一提供的类型定义高达0.57.65如 npm 中所列)。从那时起,版本直接跳转到0.60.x. 中的第一行index.d.ts还告诉我中的类型@types/react-native 0.57.65仅支持0.57版本:

// Type definitions for react-native 0.57
Run Code Online (Sandbox Code Playgroud)

@types/react-native 0.57.65到目前为止,我实际上一直在使用react-native 0.59. 但是现在我遇到了一些问题,我开始怀疑这种组合是否应该起作用。

我正在思考的问题:

  • 为什么没有0.580.59发布@types/react-native
  • 使用react-native 0.59for 类型时是否应该出现问题0.57
  • 除了升级到 ,还有没有办法解决这个问题0.60