FlowType React Context

jhe*_*dus 12 flowtype

有没有办法使流类型的React Context类型安全?

例如 :

Button.contextTypes = {
  color: React.PropTypes.string
};
Run Code Online (Sandbox Code Playgroud)

jhe*_*dus 11

不幸的是,它本身是不可能的,因为Context在编译时不知道(所以我被告知).