Skip to content

Commit a43fd60

Browse files
alloyfacebook-github-bot
authored andcommitted
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](alloy/rn2dts@6ba4b28#r37343692). ## Changelog [iOS] [Fixed] - Fixes the `InputAccessoryView.backgroundColor` prop’s typing to use `ColorValue`. Pull Request resolved: #28105 Test Plan: Passes: ```bash yarn flow-check-ios ``` Differential Revision: D19956401 Pulled By: TheSavior fbshipit-source-id: 0c16f292b0143e83235a23712a0a7a11b8317f4e
1 parent 65d3167 commit a43fd60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/Components/TextInput/InputAccessoryView.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
'use strict';
1212

13-
const DeprecatedColorPropType = require('../../DeprecatedPropTypes/DeprecatedColorPropType');
1413
const Platform = require('../../Utilities/Platform');
1514
const React = require('react');
1615
const StyleSheet = require('../../StyleSheet/StyleSheet');
1716

1817
import RCTInputAccessoryViewNativeComponent from './RCTInputAccessoryViewNativeComponent';
1918

2019
import type {ViewStyleProp} from '../../StyleSheet/StyleSheet';
20+
import type {ColorValue} from '../../StyleSheet/StyleSheetTypes';
2121

2222
/**
2323
* Note: iOS only
@@ -85,7 +85,7 @@ type Props = $ReadOnly<{|
8585
*/
8686
nativeID?: ?string,
8787
style?: ?ViewStyleProp,
88-
backgroundColor?: ?DeprecatedColorPropType,
88+
backgroundColor?: ?ColorValue,
8989
|}>;
9090

9191
class InputAccessoryView extends React.Component<Props> {

0 commit comments

Comments
 (0)