This repository was archived by the owner on Jan 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
android/src/main/java/com Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ package com .modal ;
9
+
10
+ import com .facebook .react .module .annotations .ReactModule ;
11
+ import com .facebook .react .views .modal .ReactModalHostManager ;
12
+
13
+ /** View manager for {@link ReactModalHostView} components. */
14
+ @ ReactModule (name = ReactModalHostManager .REACT_CLASS )
15
+ public class ReactModalHostManagerImproved extends ReactModalHostManager {
16
+
17
+ public static final String REACT_CLASS = "RCTModalHostViewImproved" ;
18
+
19
+ @ Override
20
+ public String getName () {
21
+ return REACT_CLASS ;
22
+ }
23
+ }
Original file line number Diff line number Diff line change 5
5
import com .facebook .react .bridge .NativeModule ;
6
6
import com .facebook .react .bridge .ReactApplicationContext ;
7
7
import com .facebook .react .uimanager .ViewManager ;
8
+ import com .modal .ReactModalHostManagerImproved ;
8
9
import com .textinput .ReactTextInputImprovedManager ;
9
10
10
11
import java .util .ArrayList ;
@@ -17,6 +18,7 @@ public List<ViewManager> createViewManagers(ReactApplicationContext reactContext
17
18
List <ViewManager > viewManagers = new ArrayList <>();
18
19
viewManagers .add (new ReactTextViewImprovedManager ());
19
20
viewManagers .add (new ReactTextInputImprovedManager ());
21
+ viewManagers .add (new ReactModalHostManagerImproved ());
20
22
return viewManagers ;
21
23
}
22
24
You can’t perform that action at this time.
0 commit comments