-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DatePickerDialogModule supports only FragmentActivity (#23371)
Summary: Now RN has only ReactActivity which extends AppCompatActivity, subclass of FragmentActivity, therefore no need to check if activity is FragmentActivity or not. This PR changes DatePickerDialogModule to work only with FragmentActivity. Also DialogFragment from Android is deprecated in API 28, and recommends to use DialogFragment from Support Library. Excerpt from DialogFragment documentation. > **This class was deprecated in API level 28.** > Use the Support Library DialogFragment for consistent behavior across all devices and access to Lifecycle. **BREAKING CHANGE**: Brown field apps must extend FragmentActivity or its subclasses [Android] [Changed] - DatePickerDialogModule supports only FragmentActivity Pull Request resolved: #23371 Differential Revision: D14030765 Pulled By: cpojer fbshipit-source-id: 3a1811102cf68b82c139f0e20b2fc8dab5d98b69
- Loading branch information
1 parent
be361d0
commit c6c5a17
Showing
3 changed files
with
22 additions
and
89 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
49 changes: 0 additions & 49 deletions
49
.../src/main/java/com/facebook/react/modules/datepicker/SupportDatePickerDialogFragment.java
This file was deleted.
Oops, something went wrong.