Skip to content
Browse files
Fix backgroundColor typing. (#28105)
TextInput’s `InputAccessoryView` was using a [deprecated] prop-type as a Flow type, which TheSavior asked me to fix [here](alloy/rn2dts@6ba4b28#r37343692).

## Changelog

[iOS] [Fixed] - Fixes the `InputAccessoryView.backgroundColor` prop’s typing to use `ColorValue`.
Pull Request resolved: #28105

Test Plan:

yarn flow-check-ios

Differential Revision: D19956401

Pulled By: TheSavior

fbshipit-source-id: 0c16f292b0143e83235a23712a0a7a11b8317f4e
  • Loading branch information
alloy authored and facebook-github-bot committed Feb 18, 2020
1 parent 65d3167 commit a43fd60e18aff9ee6bcaf8ec576adb8678d5bcf4
Showing 1 changed file with 2 additions and 2 deletions.
@@ -10,14 +10,14 @@

'use strict';

const DeprecatedColorPropType = require('../../DeprecatedPropTypes/DeprecatedColorPropType');
const Platform = require('../../Utilities/Platform');
const React = require('react');
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> {

0 comments on commit a43fd60

Please sign in to comment.