|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP |
2 | 2 |
|
3 | | -exports[`activityLinker should work for RN 0.68 1`] = ` |
4 | | -"package com.app; |
| 3 | +exports[`activityLinker should work for RN 0.77 1`] = ` |
| 4 | +"package com.app |
5 | 5 |
|
6 | | -import com.reactnativenavigation.NavigationActivity; |
7 | | -import com.facebook.react.ReactActivityDelegate; |
8 | | -import com.facebook.react.ReactRootView; |
| 6 | +import com.reactnativenavigation.NavigationActivity |
| 7 | +import com.facebook.react.ReactActivityDelegate |
| 8 | +import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled |
| 9 | +import com.facebook.react.defaults.DefaultReactActivityDelegate |
9 | 10 |
|
10 | | -public class MainActivity extends NavigationActivity { |
11 | | -
|
12 | | - |
13 | | -
|
14 | | - |
15 | | -
|
16 | | - public static class MainActivityDelegate extends ReactActivityDelegate { |
17 | | - public MainActivityDelegate(NavigationActivity activity, String mainComponentName) { |
18 | | - super(activity, mainComponentName); |
19 | | - } |
20 | | -
|
21 | | - @Override |
22 | | - protected ReactRootView createRootView() { |
23 | | - ReactRootView reactRootView = new ReactRootView(getContext()); |
24 | | - // If you opted-in for the New Architecture, we enable the Fabric Renderer. |
25 | | - reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED); |
26 | | - return reactRootView; |
27 | | - } |
28 | | - } |
29 | | -} |
30 | | -" |
31 | | -`; |
32 | | - |
33 | | -exports[`activityLinker should work for RN 0.69 1`] = ` |
34 | | -"package com.app; |
35 | | -
|
36 | | -import com.reactnativenavigation.NavigationActivity; |
37 | | -import com.facebook.react.ReactActivityDelegate; |
38 | | -import com.facebook.react.ReactRootView; |
39 | | -
|
40 | | -public class MainActivity extends NavigationActivity { |
41 | | -
|
42 | | - |
43 | | -
|
44 | | - |
45 | | -
|
46 | | - public static class MainActivityDelegate extends ReactActivityDelegate { |
47 | | - public MainActivityDelegate(NavigationActivity activity, String mainComponentName) { |
48 | | - super(activity, mainComponentName); |
49 | | - } |
50 | | -
|
51 | | - @Override |
52 | | - protected ReactRootView createRootView() { |
53 | | - ReactRootView reactRootView = new ReactRootView(getContext()); |
54 | | - // If you opted-in for the New Architecture, we enable the Fabric Renderer. |
55 | | - reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED); |
56 | | - return reactRootView; |
57 | | - } |
58 | | -
|
59 | | - @Override |
60 | | - protected boolean isConcurrentRootEnabled() { |
61 | | - // If you opted-in for the New Architecture, we enable Concurrent Root (i.e. React 18). |
62 | | - // More on this on https://reactjs.org/blog/2022/03/29/react-v18.html |
63 | | - return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED; |
64 | | - } |
65 | | - } |
66 | | -} |
67 | | -" |
68 | | -`; |
69 | | - |
70 | | - |
71 | | -exports[`activityLinker should work for RN 0.71 1`] = ` |
72 | | -"package com.app; |
73 | | -
|
74 | | -import com.reactnativenavigation.NavigationActivity; |
75 | | -import com.facebook.react.ReactActivityDelegate; |
76 | | -import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint; |
77 | | -import com.facebook.react.defaults.DefaultReactActivityDelegate; |
78 | | -
|
79 | | -public class MainActivity extends NavigationActivity { |
| 11 | +class MainActivity : NavigationActivity() { |
80 | 12 |
|
81 | 13 | |
82 | 14 |
|
|
0 commit comments