Remove duplicate prop definition
Summary: <!-- Required: Write your motivation here. If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged. --> - This is most likely a merge issue? - hasTVPreferredFocus was duplicated in the Flow types definition for the Button component, but the PropTypes are fine <!-- Required: Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos! --> Removing a duplicated prop can't really throw a Flow error. Anyway, I removed the duplicated prop and successfully ran `$ yarn flow` <!-- Does this PR require a documentation change? Create a PR at https://github.com/facebook/react-native-website and add a link to it here. --> None <!-- Required. Help reviewers and the release process by writing your own release notes. See below for an example. --> [GENERAL] [ENHANCEMENT] [Button] - Remove duplicate prop definition <!-- **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [ {Component} ] [ INTERNAL ] [ ENHANCEMENT ] [ {Filename} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> Closes https://github.com/facebook/react-native/pull/18845 Differential Revision: D7627621 Pulled By: mdvacca fbshipit-source-id: 924522641a334212f5e2c1310d81da1e321f19b1
This commit is contained in:
parent
2299d4cd7c
commit
7e58e2cbf6
|
@ -57,7 +57,6 @@ class Button extends React.Component<{
|
|||
accessibilityLabel?: ?string,
|
||||
disabled?: ?boolean,
|
||||
testID?: ?string,
|
||||
hasTVPreferredFocus?: ?boolean,
|
||||
}> {
|
||||
static propTypes = {
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue