forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deprecated dispatchCommand for INT
Summary: D15955444 introduced support for View Manager Commands that are strings. > We need to support ints and Strings to be backwards compatible, but ints will be deprecated. This was deprecated 5 years ago in D16019254. While on [backwards compatibility of UIManagerModule](https://docs.google.com/document/d/1PoFDF_Ek2U-u1BOgDCYx-EgvXMMiXsSAcBkamtMq5-M/edit#heading=h.txujclhzs5ov), this was identified as `Deprecated` method that we can get rid. - dispatchCommand(int reactTag, ~~int~~ String commandId, Nullable ReadableArray commandArgs) ; - receiveCommand(NonNull T root, ~~int~~ String commandId, Nullable ReadableArray args) - dispatchViewManagerCommand( int reactTag, ~~Dynamic~~ String commandId, Nullable ReadableArray commandArgs) NOTE: This might need more JS changes. - In RNLiveMapsView & RNLMARStageView used the String directly in switch casing instead of Enum - In fb4A removed all occurrences in ViewManagers. **PENDING:** I believe, post this, we can also get rid of `getCommandsMap() ` Over-ride as well however I see it's introduction [dates before](https://www.internalfb.com/code/fbsource/xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java?lines=303-313) adding Strings type, hence leaving that untouched. Differential Revision: D57150941
- Loading branch information
1 parent
8c3260f
commit 9274f67
Showing
21 changed files
with
5 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
...rc/main/java/com/facebook/react/fabric/mounting/mountitems/DispatchIntCommandMountItem.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.