Fix backgroundColor typing. (#28105)

Summary:
TextInput’s `InputAccessoryView` was using a [deprecated] prop-type as a Flow type, which TheSavior asked me to fix [here](https://github.com/alloy/rn2dts/commit/6ba4b28a22d8c0bd346996d78743016eaae707e1#r37343692).

## Changelog

[iOS] [Fixed] - Fixes the `InputAccessoryView.backgroundColor` prop’s typing to use `ColorValue`.
Pull Request resolved: https://github.com/facebook/react-native/pull/28105

Test Plan:
Passes:

```bash
yarn flow-check-ios
```

Differential Revision: D19956401

Pulled By: TheSavior

fbshipit-source-id: 0c16f292b0143e83235a23712a0a7a11b8317f4e
This commit is contained in:
Eloy Durán
2020-02-18 13:53:45 -08:00
committed by Facebook Github Bot
parent 65d3167a80
commit a43fd60e18
@@ -10,7 +10,6 @@
'use strict';
const DeprecatedColorPropType = require('../../DeprecatedPropTypes/DeprecatedColorPropType');
const Platform = require('../../Utilities/Platform');
const React = require('react');
const StyleSheet = require('../../StyleSheet/StyleSheet');
@@ -18,6 +17,7 @@ const StyleSheet = require('../../StyleSheet/StyleSheet');
import RCTInputAccessoryViewNativeComponent from './RCTInputAccessoryViewNativeComponent';
import type {ViewStyleProp} from '../../StyleSheet/StyleSheet';
import type {ColorValue} from '../../StyleSheet/StyleSheetTypes';
/**
* Note: iOS only
@@ -85,7 +85,7 @@ type Props = $ReadOnly<{|
*/
nativeID?: ?string,
style?: ?ViewStyleProp,
backgroundColor?: ?DeprecatedColorPropType,
backgroundColor?: ?ColorValue,
|}>;
class InputAccessoryView extends React.Component<Props> {