Skip to content

Commit 4509824

Browse files
authored
Revert "Feat/rn76 oldarch (#7967)" (#8003)
1 parent 9121357 commit 4509824

File tree

62 files changed

+445
-518
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+445
-518
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ module.exports = {
55
plugins: ['@typescript-eslint'],
66
env: {
77
jest: true,
8-
'jest/globals': true,
98
},
109
};

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,3 @@ Mock.js
244244
Mock.d.ts
245245

246246
Gemfile.lock
247-
/playground/ios/.xcode.env.local

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = function (api) {
22
api && api.cache(false);
33
return {
4-
presets: ['module:@react-native/babel-preset'],
4+
presets: ['module:metro-react-native-babel-preset'],
55
plugins: [
66
'@babel/plugin-proposal-export-namespace-from',
77
'@babel/plugin-proposal-export-default-from',

e2e/StaticLifecycleEvents.test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Utils from './Utils';
22
import TestIDs from '../playground/src/testIDs';
33

4-
const { elementByLabel, elementById, sleep } = Utils;
4+
const { elementByLabel, elementById } = Utils;
55

66
describe('static lifecycle events', () => {
77
beforeEach(async () => {
@@ -93,9 +93,6 @@ describe('static lifecycle events', () => {
9393
await elementById(TestIDs.SET_ROOT_BTN).tap();
9494
await elementById(TestIDs.CLEAR_OVERLAY_EVENTS_BTN).tap();
9595
await elementById(TestIDs.SET_ROOT_BTN).tap();
96-
// This sleep is needed in order to synchronize the test rendered with state changes. We can remove it after moving
97-
// our mock to work with act(()=>{}) from react-test-renderer
98-
await sleep(10);
9996
await expect(elementByLabel('setRoot complete - previous root is unmounted')).toBeVisible();
10097
});
10198

31.1 KB
Loading

lib/android/app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def DEFAULT_KOTLIN_STDLIB = 'kotlin-stdlib-jdk8'
2020
def kotlinVersion = safeExtGet("RNNKotlinVersion", DEFAULT_KOTLIN_VERSION)
2121
def kotlinStdlib = safeExtGet('RNNKotlinStdlib',DEFAULT_KOTLIN_STDLIB )
2222
def kotlinCoroutinesCore = safeExtGet('RNNKotlinCoroutinesCore', '1.5.2')
23-
2423
android {
2524
namespace 'com.reactnativenavigation'
2625
compileSdkVersion safeExtGetFallbackLowerBound('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)

lib/android/app/src/main/java/com/reactnativenavigation/NavigationApplication.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22

33
import android.app.Application;
44

5+
import androidx.annotation.NonNull;
6+
57
import com.facebook.react.ReactApplication;
68
import com.facebook.react.ReactNativeHost;
7-
import com.facebook.react.soloader.OpenSourceMergedSoMapping;
89
import com.facebook.soloader.SoLoader;
910
import com.reactnativenavigation.react.ReactGateway;
1011
import com.reactnativenavigation.viewcontrollers.externalcomponent.ExternalComponentCreator;
1112

1213
import java.util.Collections;
13-
import java.io.IOException;
1414
import java.util.HashMap;
1515
import java.util.Map;
1616

17-
import androidx.annotation.NonNull;
18-
1917
public abstract class NavigationApplication extends Application implements ReactApplication {
2018

2119
public static NavigationApplication instance;
@@ -35,11 +33,7 @@ public NavigationApplication(Map<RNNToggles, Boolean> featureToggleOverrides) {
3533
@Override
3634
public void onCreate() {
3735
super.onCreate();
38-
try {
39-
SoLoader.init(this, OpenSourceMergedSoMapping.INSTANCE);
40-
} catch (IOException e) {
41-
throw new RuntimeException(e);
42-
}
36+
SoLoader.init(this, false);
4337
reactGateway = createReactGateway();
4438
}
4539

lib/android/app/src/main/java/com/reactnativenavigation/react/ReactView.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
import android.os.Bundle;
66
import android.view.MotionEvent;
77

8-
import androidx.annotation.RestrictTo;
9-
108
import com.facebook.react.ReactInstanceManager;
119
import com.facebook.react.ReactRootView;
1210
import com.facebook.react.bridge.ReactContext;
1311
import com.facebook.react.config.ReactFeatureFlags;
1412
import com.facebook.react.uimanager.JSTouchDispatcher;
1513
import com.facebook.react.uimanager.UIManagerModule;
1614
import com.facebook.react.uimanager.events.EventDispatcher;
15+
import com.reactnativenavigation.viewcontrollers.viewcontroller.ScrollEventListener;
1716
import com.reactnativenavigation.react.events.ComponentType;
1817
import com.reactnativenavigation.react.events.EventEmitter;
1918
import com.reactnativenavigation.viewcontrollers.viewcontroller.IReactView;
20-
import com.reactnativenavigation.viewcontrollers.viewcontroller.ScrollEventListener;
2119
import com.reactnativenavigation.views.component.Renderable;
2220

21+
import androidx.annotation.RestrictTo;
22+
2323
@SuppressLint("ViewConstructor")
2424
public class ReactView extends ReactRootView implements IReactView, Renderable {
2525

lib/android/app/src/main/java/com/reactnativenavigation/react/modal/ModalHostLayout.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ open class ModalHostLayout(reactContext: ThemedReactContext) : ViewGroup(reactCo
3434
}
3535

3636
@TargetApi(23)
37-
override fun dispatchProvideStructure(structure: ViewStructure) {
37+
override fun dispatchProvideStructure(structure: ViewStructure?) {
3838
mHostView.dispatchProvideStructure(structure)
3939
}
4040

lib/android/app/src/main/java/com/reactnativenavigation/utils/ReactTypefaceUtils.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import android.text.TextUtils;
1919
import androidx.annotation.Nullable;
2020
import com.facebook.react.bridge.ReadableArray;
21-
import com.facebook.react.common.ReactConstants;
2221
import com.facebook.react.views.text.ReactFontManager;
2322
import com.facebook.react.views.text.ReactTextShadowNode;
2423
import java.util.ArrayList;
@@ -97,12 +96,12 @@ public static Typeface applyStyles(
9796

9897
int want = 0;
9998
if ((weight == Typeface.BOLD)
100-
|| ((oldStyle & Typeface.BOLD) != 0 && weight == ReactConstants.UNSET)) {
99+
|| ((oldStyle & Typeface.BOLD) != 0 && weight == ReactTextShadowNode.UNSET)) {
101100
want |= Typeface.BOLD;
102101
}
103102

104103
if ((style == Typeface.ITALIC)
105-
|| ((oldStyle & Typeface.ITALIC) != 0 && style == ReactConstants.UNSET)) {
104+
|| ((oldStyle & Typeface.ITALIC) != 0 && style == ReactTextShadowNode.UNSET)) {
106105
want |= Typeface.ITALIC;
107106
}
108107

0 commit comments

Comments
 (0)