Compare commits

...
Author SHA1 Message Date
grabbou c833f41177 [0.61.1] Bump version numbers 2019-09-25 11:30:06 +02:00
grabbou 3aaebe60ce Revert "Add generated xcshareddata folder to gitignore (#25451)"
This reverts commit d57cdac62b.
2019-09-25 11:27:04 +02:00
grabbou b2a7689061 Revert "[0.61.1] Bump version numbers"
This reverts commit 2577ca5340.
2019-09-25 11:25:15 +02:00
grabbou 2577ca5340 [0.61.1] Bump version numbers 2019-09-25 11:22:59 +02:00
Tom Targoszandgrabbou 4b1206c2ae Fix ShareSheet crash on iOS 13 (#26429)
Summary:
Currently on iOS 13 the app will crash if you:
- Open the share sheet
- Tap something like messages or photos
- Cancel the dialog
- Perform any other action

This is because `shareController.completionWithItemsHandler` is called when the dialog box is canceled and currently `failureCallback` or `successCallback` will always be called. In the situation above, `activityError` is `nil` so `successCallback` will be called even though `completed` is false. This leaves us in a state where the callback has been invoked but the ShareSheet is still active, meaning the success or error callback will be invoked again, leading to the crash.

This PR adds a check to make sure `completed` is true before calling `successCallback`. This way `successCallback` will only be called when the user has successfully completed an action and the ShareSheet is closed.

## Changelog

[iOS] [Fixed] - Fix crash in RCTActionSheetManager.m on iOS 13
Pull Request resolved: https://github.com/facebook/react-native/pull/26429

Test Plan:
- Saved an image successfully
- Opened and dismissed the `Photos` dialog multiple times without crashing

Differential Revision: D17369712

Pulled By: PeteTheHeat

fbshipit-source-id: 228b696243cd39fad1fa134f4412d95d845b1bc5
2019-09-25 11:14:11 +02:00
Krzysztof Magieraandgrabbou 42ad0bb627 Allow again for injecting custom root view via ReactActivityDelegate (#26495)
Summary:
This change restores the possibility of injecting custom root views via ReactAcitivtyDelegate. It has been used by react-native-gesture-handler library in order to replace default root view with a one that'd route touch events to gesture-handler internal pipeline.

The regression happened in d0792d4b8a where new `ReactDelegate` was introduced to provide support for rendering react native views in both Android fragments and activities. As a part of that change the logic responsible for creating root view has been moved from `ReactActivityDelegate` to `ReactDelegate` rendering `ReactActivityDelegate.createRootView` unused – that is there is no code path that leads to this method being called. Instead `ReactDelegate.createRootView` method has been added which now plays the same role. The custom root view injection was relying on overwriting that method and hence the method is no longer referenced overwriting it has no effect. Following the logic migration out of `ReactActivityDelegate` into `ReactDelegate` we could potentially now start overwriting methods of `ReactDelegate`. However when working with Android's activities in React Native we can only provide an instance of `ReactActivityDelegate` and in my opinion it does not make too much sense to expose also a way to provide own instance of `ReactDelegate`.

The proposed fix was to route `ReactDelegate.createRootView` to call `ReactActivityDelegate.createRootView` and this way regaining control over root view creation to `ReactActivityDelgate`. The change of the behavior has been implemented by subclassing `ReactDelegate` directly from `ReactActivityDelegate` and hooking the aforementioned methods together. Thanks to this approach, the change has no effect on `ReactDelegate` being used directly from fragments or in other scenarios where it is not being instantiated from `ReactActivityDelegate`.

This fixes an issue reported in https://github.com/kmagiera/react-native-gesture-handler/issues/745 and discussed on 0.61 release thread: https://github.com/react-native-community/releases/issues/140#issuecomment-532235945

## Changelog

[Internal] [Fixed] - Allow for custom root view to be injected via ReactActivityDelegate
Pull Request resolved: https://github.com/facebook/react-native/pull/26495

Test Plan:
1. Run RNTester, take layout snapshot, see the react root view being on the top of view hierarchy.
2. Run gesture-handler Example app (or some other app that overwrites ReactActivityDelegate.createRootView method), on layout snapshot see custom root view being used.

Differential Revision: D17482966

Pulled By: mdvacca

fbshipit-source-id: 866f551b8b077bafe1eb9e34e5dccb1240fa935e
2019-09-25 11:07:12 +02:00
grabbou 3293792b1f [0.61.0] Bump version numbers 2019-09-24 21:27:29 +02:00
grabbou 6830ec87ff Revert "Update Gradle wrapper to 5.6 (#26079)"
This reverts commit afd35296f2.
2019-09-24 21:05:26 +02:00
grabbou 8750eb2538 Revert "bump android gradle plugin to 3.5.0 (#26129)"
This reverts commit 8d4e8a3775.
2019-09-24 20:55:02 +02:00
Frieder Bluemleandgrabbou afd35296f2 Update Gradle wrapper to 5.6 (#26079)
Summary:
```
Welcome to Gradle 5.6!

Here are the highlights of this release:
 - Incremental Groovy compilation
 - Groovy compile avoidance
 - Test fixtures for Java projects
 - Manage plugin versions via settings script

For more details see https://docs.gradle.org/5.6/release-notes.html
```

## Changelog

[Android] [Changed] - Gradle wrapper 5.6
Pull Request resolved: https://github.com/facebook/react-native/pull/26079

Test Plan: Ran build and tests locally.

Differential Revision: D17054310

Pulled By: mdvacca

fbshipit-source-id: de7ba3a6d04058e51b8bc6a21d5a3f828ef8bc25
2019-09-24 20:41:49 +02:00
Dulmandakhandgrabbou 8d4e8a3775 bump android gradle plugin to 3.5.0 (#26129)
Summary:
Android Gradle Plugin 3.5.0 released with a lot of improvements and bug fixes. It's important to have this change merged before 0.61 release. See https://developer.android.com/studio/releases/gradle-plugin

## Changelog

[Android] [Changed] - bump android gradle plugin to 3.5.0
Pull Request resolved: https://github.com/facebook/react-native/pull/26129

Test Plan: RNTester builds and runs as expected

Reviewed By: mdvacca

Differential Revision: D17091520

Pulled By: osdnk

fbshipit-source-id: 232b9209526e62a7344d74422fd8471a03dec7f4
2019-09-24 20:41:43 +02:00
Alexander Kawrykowandgrabbou 245ac945fb React Partial Sync
Summary:
Base: 85d05b3a4d439c504ee43652d586ee253a01faf6

Author: Dan Abramov <dan.abramov@gmail.com>
Date:   Wed Sep 18 16:32:11 2019 +0100

    [Fresh] Always remount classes (#16823)

commit acfdc9760b4dc55d192b08de42b2c45e5e5bb531
Author: Ricky <rickhanlonii@gmail.com>
Date:   Wed Sep 18 15:31:00 2019 +0100

    [React Native] Fix for view config registrations (#16821)

commit dbe593d96c35b33fcc1f1bec70af86c24779392b
Author: Dominic Gannaway <trueadm@users.noreply.github.com>
Date:   Wed Sep 18 14:18:32 2019 +0200

    [react-core] Do not null fiber.sibling in detachFiber (#16820)

commit 30fa2f5ea3313b4b7932783d8ac71b5d59b8a8c7
Author: Dominic Gannaway <trueadm@users.noreply.github.com>
Date:   Tue Sep 17 17:30:22 2019 +0200

    [react-core] Clear more properties in detachFiber (#16807)

commit ea374e751b164ed029b35063b84c825305024a0a
Author: Dan Abramov <dan.abramov@gmail.com>
Date:   Wed Aug 28 16:55:56 2019 +0100

    Don't ignore dependencies for render phase update (#16574)

Reviewed By: gaearon

Differential Revision: D17456249

fbshipit-source-id: 87bad63fed4a571f65592ee904606828e3aa39af
2019-09-24 20:41:23 +02:00
sunnylqmandgrabbou 06c64f5f1b Bump hermes to v0.2.1 (#26451)
Summary:
Bump hermes to v0.2.1

allow-large-files

## Changelog

See https://github.com/facebook/hermes/releases/tag/v0.2.1

[Android] [Changed] - Bump hermes to v0.2.1
Pull Request resolved: https://github.com/facebook/react-native/pull/26451

Test Plan: RNTester builds and runs as expected

Differential Revision: D17394921

Pulled By: cpojer

fbshipit-source-id: 07ce5da3517b7aa24bfb5e1f6eefed6cdc9f5cb5
2019-09-19 09:38:41 +02:00
grabbou a5353c0361 Revert "Fix onDismiss in Modal"
This reverts commit bd2b7d6c03.
2019-09-19 09:36:45 +02:00
REDMOND\acoatesandgrabbou 930ffa28a3 Fix build break in MSVC (#26462)
Summary:
Merging react-native-windows to 0.60 - the visual studio compiler seems to take issue with the existing code

## Changelog

[Internal] [Fixed] - Build fix for react-native-windows (MSVC)
Pull Request resolved: https://github.com/facebook/react-native/pull/26462

Test Plan:
No real change, just making compilers happy.

### Side Note
We'll want this change cherry-pickered to RN 0.60 and RN 0.61 so users of react-native-windows dont have to use our fork of react-native.

Reviewed By: mhorowitz

Differential Revision: D17406081

Pulled By: TheSavior

fbshipit-source-id: bc056e1a545c6478fdcbd5645f3a8dea657162c8
2019-09-19 09:31:21 +02:00
Gabriel Furiniandgrabbou e0d9ceaa79 Fixing Yoga imports and includes on case-sensitive machines (#26416)
Summary:
In addition of the issue resolved by https://github.com/facebook/react-native/pull/26360 (already merged), machines with case-sensitive disks are still not able to build a project on Xcode due not found `<yoga/...` imports:

```
'yoga/Yoga.h' file not found
```

![Screen Shot 2019-09-12 at 11 15 54](https://user-images.githubusercontent.com/1728387/64791885-c58c9180-d54e-11e9-95cb-40befaab7acc.png)

## Changelog

[iOS] [Fixed] - Fix Yoga imports and includes
Pull Request resolved: https://github.com/facebook/react-native/pull/26416

Test Plan: `Build` command on Xcode now runs successfully in a Mac with disk in case-sensitive mode

Differential Revision: D17370392

Pulled By: PeteTheHeat

fbshipit-source-id: 2a225f47046113267adb154a4c6a9ef4664a12c3
2019-09-19 09:31:05 +02:00
grabbou fc6580e2e0 [0.61.0-rc.3] Bump version numbers 2019-09-10 19:01:50 +02:00
grabbou a648a7176a Rename Yoga 2019-09-10 13:44:11 +02:00
Max Thirouinandgrabbou cf5ca2659a Fix incorrect module.name_mapper in template .flowconfig (#26330)
Summary:
Has explained in https://github.com/facebook/react-native/issues/26233, current template is incorrect & can create error, like having require() of png that are considered as `string` instead of `number. This can probably hide tons of similar mistakes.

The change in this PR should resolve the previous behavior (& for example, some places in previous version of the flowconfig have the full path like here https://github.com/facebook/react-native/blob/35300147ca66677f42e8544264be72ac0e9d1b45/template/_flowconfig#L61)

Closes https://github.com/facebook/react-native/issues/26233

## Changelog

```
[General] [Fixed] Fix incorrect `module.name_mapper` in template .flowconfig
```

Alternatively, message could be

```
[General] [Internal] Fix incorrect `module.name_mapper` in template .flowconfig
```

As it hasn't this "bug" hasn't been released in a public stable release. You decide
Pull Request resolved: https://github.com/facebook/react-native/pull/26330

Test Plan: I just tested this in my project, thymikee might be able to confirm & approve this PR.

Differential Revision: D17258891

Pulled By: cpojer

fbshipit-source-id: 3904ffbc6f076ee0e435311249d694b8604fc7b8
2019-09-10 13:37:34 +02:00
James Treanorandgrabbou 231581c256 Add missing dependencies to React-CoreModules.podspec 2019-09-10 13:36:41 +02:00
James Treanorandgrabbou 2ec83bec5f Revert "Revert "Remove 's.static_framework = true' requirement for podspec (#25816)""
This reverts commit 612c033918.
2019-09-10 13:36:24 +02:00
Kevin Gozaliandgrabbou 50d9551f87 TM iOS: Disable in test environment
Summary:
For now, disable TM completely in test environment, like RNTester integration/unit tests. See details in T53341772

This also fixes the failure discussed in https://github.com/facebook/react-native/pull/26151

Reviewed By: PeteTheHeat

Differential Revision: D17147915

fbshipit-source-id: 1c48ebb9c3b81fc08bc33606dcc38c29297d6010
2019-09-10 13:33:40 +02:00
grabbou 0356b1fa13 [0.61.0-rc.2] Bump version numbers 2019-09-04 17:55:42 +02:00
grabbou b153a05e2f Update release script 2019-09-04 17:55:17 +02:00
grabbou dcf56a43fa Sync Podfile 2019-09-04 17:54:59 +02:00
Ram Nandgrabbou e0e9a1cb4f Update the version of yoga podspec to match the actual version of Yoga published
Summary: Yoga is currently published in cocoapods. While we don't use the Yoga from Cocoapods in React Native, we should atleast try to follow that version, so that other integrations with Yoga are possible

Reviewed By: shergin

Differential Revision: D17127625

fbshipit-source-id: bca2e1e33ad775e2a0d7a6f1e4177c3b480c023a
2019-09-04 17:32:51 +02:00
Ram Nandgrabbou 8d02e1723f Change podspec name of yoga to Yoga
Summary:
Needed to capitalize the name, since this is the convention used elsewhere too

[iOS] [Changed] - Renamed yoga podspec to Yoga

Reviewed By: shergin

Differential Revision: D17127104

fbshipit-source-id: 14047bf452edda000037701f4ba7f4a02a0e717b
2019-09-04 17:32:15 +02:00
Dan Abramovandgrabbou eb0216d8be Partial RN sync
Summary:
This cherry-picks one commit: https://github.com/facebook/react/commit/01fb68b9bf680ab8bbf96e86501e0fc540b3cc97

It fixes a bug in Fast Refresh.

Reviewed By: threepointone

Differential Revision: D17140543

fbshipit-source-id: a7654152d1cc7c27e7c4024380349b44ac496b22
2019-09-04 17:20:31 +02:00
Dan Abramovandgrabbou c0fa590a03 Fix Redbox on iOS
Summary:
Looks like we broke iOS redbox in D16812212. It stopped showing up because the feature detection stopped working, and we started calling noops. The fix is an explicit platform check.

Fixes #26260

Reviewed By: motiz88

Differential Revision: D17139310

fbshipit-source-id: 829eec23cbb49151ac250889c34ab28d36b05e6a
2019-09-04 17:20:17 +02:00
SachinTotaleandgrabbou ba5222f3cc Memory Leak due to JSStringRelease not called in multiple places in JSCRuntime.cpp (#25884)
Summary:
Memory Leak due to JSStringRelease not called in multiple places in JSCRuntime.cpp
Issue: https://github.com/facebook/react-native/issues/25664
Reproducible repo: https://github.com/bhandarijiwan/memory_issue_repro

## Changelog
[JSC] [JSCRuntime.cpp] - Added missing JSStringRelease calls in missing places
Pull Request resolved: https://github.com/facebook/react-native/pull/25884

Test Plan: Tested that is no memory leak with various NativeModule to JS call flows

Reviewed By: JoshuaGross

Differential Revision: D16928985

Pulled By: TheSavior

fbshipit-source-id: 65ce15ae32482d0db39bad7e22a2fed9ee04f230
2019-09-04 17:11:16 +02:00
grabbou c57bfea01e [0.61.0-rc.0] Bump version numbers 2019-08-27 16:20:02 +02:00
Mike GrabowskiandGitHub fafc58b62d Update CircleCI config as per support request 2019-08-27 16:18:55 +02:00
grabbou eded25d532 Revert "[0.61.0-rc.0] Bump version numbers"
This reverts commit bc28eee87f.
2019-08-27 16:16:31 +02:00
grabbou bc28eee87f [0.61.0-rc.0] Bump version numbers 2019-08-26 16:29:47 +02:00
Mehdi Mulaniandgrabbou 104b0cc862 Remove RCTUIImageViewAnimated WeakProxy gating
Summary:
To help determine how severe this issue is, put the fix behind a MC.
We will only pick the parent diff to the RC branch so that the fix immediately goes to master and we don't have to worry about fixing this any further.

Reviewed By: fkgozali

Differential Revision: D16940181

fbshipit-source-id: 91eb08181f82f51aea6a20b3fd489a33bdc0e424
2019-08-26 15:52:43 +02:00
Mehdi Mulaniandgrabbou 6d6b532f8f Add RCTWeakProxy to properly deallocate RCTUIImageViewAnimated
Summary:
@public
CADisplayLink strongly holds onto its target, so you have to use a weak proxy object to pass the target into the CADisplayLink.

Previously we passed a weak-self point (i.e. weakSelf) but this did not have the intended effect, since the pointer to self would still be passed to CADisplayLink, and thus it would hold onto the RCTUIImageViewAnimated strongly.

So is weakSelf doing anything other than using self?
It is but it's very minor and not useful. In the case that the object got de-allocated between assigning self to weakSelf and creating the CADisplayLink, then we would pass a nil target. This is actually impossible though because we are running an instance method, so self is implicitly retained! So semantically it is something different but in practice it is the same as passing self through.

Notes:
* This system was added originally in https://github.com/facebook/react-native/pull/24822
* https://github.com/facebook/react-native/pull/25636 then "enabled" this system by deprecating existing approach

Reviewed By: fkgozali

Differential Revision: D16939869

fbshipit-source-id: 7a0e947896f23aa30ad074d1dcb4d4db7543e00a
2019-08-26 15:52:37 +02:00
grabbou 1dd1152025 Revert "[0.61.0-rc.0] Bump version numbers"
This reverts commit 2575eb318f.
2019-08-26 15:52:30 +02:00
grabbou 2575eb318f [0.61.0-rc.0] Bump version numbers 2019-08-22 12:40:24 +02:00
grabbou 1dd68819ab Revert "[0.61.0-rc.0] Bump version numbers"
This reverts commit 9296ab1a61.
2019-08-22 12:39:59 +02:00
grabbou 9296ab1a61 [0.61.0-rc.0] Bump version numbers 2019-08-22 12:21:46 +02:00
grabbou 612c033918 Revert "Remove 's.static_framework = true' requirement for podspec (#25816)"
This reverts commit ca9e108110.
2019-08-22 08:59:52 +02:00
grabbou f827ea90b0 Revert "Remove vendored proguard annotation (#26069)"
This reverts commit 35fc0add2d.
2019-08-21 14:40:10 +02:00
Mike Grabowski b356ac7769 Tweak script to work with no global CLI 2019-08-20 23:20:02 +02:00
Mike Grabowski 5485238bb4 Bump test version for cache issues 2019-08-20 23:18:17 +02:00
48 changed files with 705 additions and 460 deletions
+8
View File
@@ -659,6 +659,14 @@ workflows:
- publish_npm_package:
requires:
- setup_android
filters:
# Both of the following conditions must be included!
# Ignore any commit on any branch by default.
branches:
ignore: /.*/
# Only act on version tags.
tags:
only: /v[0-9]+(\.[0-9]+)*(\-rc(\.[0-9]+)?)?/
analysis:
jobs:
@@ -166,7 +166,7 @@ RCT_EXPORT_METHOD(showShareActionSheetWithOptions:(NSDictionary *)options
shareController.completionWithItemsHandler = ^(NSString *activityType, BOOL completed, __unused NSArray *returnedItems, NSError *activityError) {
if (activityError) {
failureCallback(activityError);
} else {
} else if (completed) {
successCallback(@[@(completed), RCTNullIfNil(activityType)]);
}
};
+8 -3
View File
@@ -46,16 +46,19 @@ export interface Spec extends TurboModule {
stack: Array<StackFrame>,
exceptionId: number,
) => void;
// TODO(T53311281): This is a noop on iOS now. Implement it.
+reportException?: (data: ExceptionData) => void;
+updateExceptionMessage: (
message: string,
stack: Array<StackFrame>,
exceptionId: number,
) => void;
// Android only
// TODO(T53311281): This is a noop on iOS now. Implement it.
+dismissRedbox?: () => void;
}
const Platform = require('../Utilities/Platform');
const NativeModule = TurboModuleRegistry.getEnforcing<Spec>(
'ExceptionsManager',
);
@@ -83,12 +86,14 @@ const ExceptionsManager = {
NativeModule.updateExceptionMessage(message, stack, exceptionId);
},
dismissRedbox(): void {
if (NativeModule.dismissRedbox) {
if (Platform.OS !== 'ios' && NativeModule.dismissRedbox) {
// TODO(T53311281): This is a noop on iOS now. Implement it.
NativeModule.dismissRedbox();
}
},
reportException(data: ExceptionData): void {
if (NativeModule.reportException) {
if (Platform.OS !== 'ios' && NativeModule.reportException) {
// TODO(T53311281): This is a noop on iOS now. Implement it.
NativeModule.reportException(data);
return;
}
+4 -4
View File
@@ -1,17 +1,17 @@
/**
* @generated by scripts/bump-oss-version.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @generated by scripts/bump-oss-version.js
* @flow
*/
exports.version = {
major: 0,
minor: 0,
patch: 0,
minor: 61,
patch: 1,
prerelease: null,
};
+1
View File
@@ -6,6 +6,7 @@
*/
#import <React/RCTAnimatedImage.h>
#import <React/RCTDefines.h>
@interface RCTUIImageViewAnimated : UIImageView
+2 -2
View File
@@ -6,6 +6,7 @@
*/
#import <React/RCTUIImageViewAnimated.h>
#import <React/RCTWeakProxy.h>
#import <mach/mach.h>
#import <objc/runtime.h>
@@ -146,8 +147,7 @@ static NSUInteger RCTDeviceFreeMemory() {
- (CADisplayLink *)displayLink
{
if (!_displayLink) {
__weak __typeof(self) weakSelf = self;
_displayLink = [CADisplayLink displayLinkWithTarget:weakSelf selector:@selector(displayDidRefresh:)];
_displayLink = [CADisplayLink displayLinkWithTarget:[RCTWeakProxy weakProxyWithTarget:self] selector:@selector(displayDidRefresh:)];
NSString *runLoopMode = [NSProcessInfo processInfo].activeProcessorCount > 1 ? NSRunLoopCommonModes : NSDefaultRunLoopMode;
[_displayLink addToRunLoop:[NSRunLoop mainRunLoop] forMode:runLoopMode];
}
+25 -3
View File
@@ -12,8 +12,11 @@
const AppContainer = require('../ReactNative/AppContainer');
const I18nManager = require('../ReactNative/I18nManager');
const PropTypes = require('prop-types');
const NativeEventEmitter = require('../EventEmitter/NativeEventEmitter');
import NativeModalManager from './NativeModalManager';
const Platform = require('../Utilities/Platform');
const React = require('react');
const PropTypes = require('prop-types');
const ScrollView = require('../Components/ScrollView/ScrollView');
const StyleSheet = require('../StyleSheet/StyleSheet');
const View = require('../Components/View/View');
@@ -23,6 +26,12 @@ import type {DirectEventHandler} from '../Types/CodegenTypes';
import type {SyntheticEvent} from '../Types/CoreEventTypes';
import type EmitterSubscription from '../vendor/emitter/EmitterSubscription';
import RCTModalHostView from './RCTModalHostViewNativeComponent';
const ModalEventEmitter =
Platform.OS === 'ios' && NativeModalManager != null
? new NativeEventEmitter(NativeModalManager)
: null;
/**
* The Modal component is a simple way to present content above an enclosing view.
*
@@ -174,9 +183,22 @@ class Modal extends React.Component<Props> {
};
}
componentDidMount() {
if (ModalEventEmitter) {
this._eventSubscription = ModalEventEmitter.addListener(
'modalDismissed',
event => {
if (event.modalID === this._identifier && this.props.onDismiss) {
this.props.onDismiss();
}
},
);
}
}
componentWillUnmount() {
if (this.props.onDismiss != null) {
this.props.onDismiss();
if (this._eventSubscription) {
this._eventSubscription.remove();
}
}
@@ -79,6 +79,14 @@ type NativeProps = $ReadOnly<{|
*/
onShow?: ?DirectEventHandler<null>,
/**
* The `onDismiss` prop allows passing a function that will be called once
* the modal has been dismissed.
*
* See https://facebook.github.io/react-native/docs/modal.html#ondismiss
*/
onDismiss?: ?BubblingEventHandler<null>,
/**
* Deprecated. Use the `animationType` prop instead.
*/
@@ -6901,7 +6901,11 @@ function scheduleFibersWithFamiliesRecursively(
if (staleFamilies.has(family)) {
needsRemount = true;
} else if (updatedFamilies.has(family)) {
needsRender = true;
if (tag === ClassComponent) {
needsRemount = true;
} else {
needsRender = true;
}
}
}
}
@@ -11122,6 +11126,11 @@ function renderWithHooks(
do {
didScheduleRenderPhaseUpdate = false;
numberOfReRenders += 1;
{
// Even when hot reloading, allow dependencies to stabilize
// after first render to prevent infinite render phase updates.
ignorePreviousDependencies = false;
}
// Start over from the beginning of the list
nextCurrentHook = current !== null ? current.memoizedState : null;
@@ -17860,6 +17869,7 @@ function commitNestedUnmounts(root, renderPriorityLevel) {
}
function detachFiber(current$$1) {
var alternate = current$$1.alternate;
// Cut off the return pointers to disconnect it from the tree. Ideally, we
// should clear the child pointer of the parent alternate to let this
// get GC:ed but we don't know which for sure which parent is the current
@@ -17870,13 +17880,13 @@ function detachFiber(current$$1) {
current$$1.memoizedState = null;
current$$1.updateQueue = null;
current$$1.dependencies = null;
var alternate = current$$1.alternate;
current$$1.alternate = null;
current$$1.firstEffect = null;
current$$1.lastEffect = null;
current$$1.pendingProps = null;
current$$1.memoizedProps = null;
if (alternate !== null) {
alternate.return = null;
alternate.child = null;
alternate.memoizedState = null;
alternate.updateQueue = null;
alternate.dependencies = null;
detachFiber(alternate);
}
}
@@ -6897,7 +6897,11 @@ function scheduleFibersWithFamiliesRecursively(
if (staleFamilies.has(family)) {
needsRemount = true;
} else if (updatedFamilies.has(family)) {
needsRender = true;
if (tag === ClassComponent) {
needsRemount = true;
} else {
needsRender = true;
}
}
}
}
@@ -11118,6 +11122,11 @@ function renderWithHooks(
do {
didScheduleRenderPhaseUpdate = false;
numberOfReRenders += 1;
{
// Even when hot reloading, allow dependencies to stabilize
// after first render to prevent infinite render phase updates.
ignorePreviousDependencies = false;
}
// Start over from the beginning of the list
nextCurrentHook = current !== null ? current.memoizedState : null;
@@ -17856,6 +17865,7 @@ function commitNestedUnmounts(root, renderPriorityLevel) {
}
function detachFiber(current$$1) {
var alternate = current$$1.alternate;
// Cut off the return pointers to disconnect it from the tree. Ideally, we
// should clear the child pointer of the parent alternate to let this
// get GC:ed but we don't know which for sure which parent is the current
@@ -17866,13 +17876,13 @@ function detachFiber(current$$1) {
current$$1.memoizedState = null;
current$$1.updateQueue = null;
current$$1.dependencies = null;
var alternate = current$$1.alternate;
current$$1.alternate = null;
current$$1.firstEffect = null;
current$$1.lastEffect = null;
current$$1.pendingProps = null;
current$$1.memoizedProps = null;
if (alternate !== null) {
alternate.return = null;
alternate.child = null;
alternate.memoizedState = null;
alternate.updateQueue = null;
alternate.dependencies = null;
detachFiber(alternate);
}
}
@@ -5002,6 +5002,20 @@ function commitUnmount(current$$1$jscomp$0, renderPriorityLevel) {
createChildNodeSet(current$$1$jscomp$0.stateNode.containerInfo);
}
}
function detachFiber(current$$1) {
var alternate = current$$1.alternate;
current$$1.return = null;
current$$1.child = null;
current$$1.memoizedState = null;
current$$1.updateQueue = null;
current$$1.dependencies = null;
current$$1.alternate = null;
current$$1.firstEffect = null;
current$$1.lastEffect = null;
current$$1.pendingProps = null;
current$$1.memoizedProps = null;
null !== alternate && detachFiber(alternate);
}
function commitWork(current$$1, finishedWork) {
switch (finishedWork.tag) {
case 0:
@@ -6239,18 +6253,7 @@ function commitRootImpl(root, renderPriorityLevel) {
snapshot.sibling.return = snapshot.return;
snapshot = snapshot.sibling;
}
prevProps.return = null;
prevProps.child = null;
prevProps.memoizedState = null;
prevProps.updateQueue = null;
prevProps.dependencies = null;
var alternate = prevProps.alternate;
null !== alternate &&
((alternate.return = null),
(alternate.child = null),
(alternate.memoizedState = null),
(alternate.updateQueue = null),
(alternate.dependencies = null));
detachFiber(prevProps);
}
nextEffect = nextEffect.nextEffect;
}
@@ -6313,20 +6316,20 @@ function commitRootImpl(root, renderPriorityLevel) {
case 3:
var _updateQueue = current$$1$jscomp$0.updateQueue;
if (null !== _updateQueue) {
alternate = null;
current$$1 = null;
if (null !== current$$1$jscomp$0.child)
switch (current$$1$jscomp$0.child.tag) {
case 5:
alternate =
current$$1 =
current$$1$jscomp$0.child.stateNode.canonical;
break;
case 1:
alternate = current$$1$jscomp$0.child.stateNode;
current$$1 = current$$1$jscomp$0.child.stateNode;
}
commitUpdateQueue(
current$$1$jscomp$0,
_updateQueue,
alternate,
current$$1,
currentRef
);
}
@@ -5002,6 +5002,20 @@ function commitUnmount(current$$1$jscomp$0, renderPriorityLevel) {
createChildNodeSet(current$$1$jscomp$0.stateNode.containerInfo);
}
}
function detachFiber(current$$1) {
var alternate = current$$1.alternate;
current$$1.return = null;
current$$1.child = null;
current$$1.memoizedState = null;
current$$1.updateQueue = null;
current$$1.dependencies = null;
current$$1.alternate = null;
current$$1.firstEffect = null;
current$$1.lastEffect = null;
current$$1.pendingProps = null;
current$$1.memoizedProps = null;
null !== alternate && detachFiber(alternate);
}
function commitWork(current$$1, finishedWork) {
switch (finishedWork.tag) {
case 0:
@@ -6239,18 +6253,7 @@ function commitRootImpl(root, renderPriorityLevel) {
snapshot.sibling.return = snapshot.return;
snapshot = snapshot.sibling;
}
prevProps.return = null;
prevProps.child = null;
prevProps.memoizedState = null;
prevProps.updateQueue = null;
prevProps.dependencies = null;
var alternate = prevProps.alternate;
null !== alternate &&
((alternate.return = null),
(alternate.child = null),
(alternate.memoizedState = null),
(alternate.updateQueue = null),
(alternate.dependencies = null));
detachFiber(prevProps);
}
nextEffect = nextEffect.nextEffect;
}
@@ -6313,20 +6316,20 @@ function commitRootImpl(root, renderPriorityLevel) {
case 3:
var _updateQueue = current$$1$jscomp$0.updateQueue;
if (null !== _updateQueue) {
alternate = null;
current$$1 = null;
if (null !== current$$1$jscomp$0.child)
switch (current$$1$jscomp$0.child.tag) {
case 5:
alternate =
current$$1 =
current$$1$jscomp$0.child.stateNode.canonical;
break;
case 1:
alternate = current$$1$jscomp$0.child.stateNode;
current$$1 = current$$1$jscomp$0.child.stateNode;
}
commitUpdateQueue(
current$$1$jscomp$0,
_updateQueue,
alternate,
current$$1,
currentRef
);
}
@@ -5354,6 +5354,20 @@ function commitUnmount(current$$1$jscomp$0, renderPriorityLevel) {
createChildNodeSet(current$$1$jscomp$0.stateNode.containerInfo);
}
}
function detachFiber(current$$1) {
var alternate = current$$1.alternate;
current$$1.return = null;
current$$1.child = null;
current$$1.memoizedState = null;
current$$1.updateQueue = null;
current$$1.dependencies = null;
current$$1.alternate = null;
current$$1.firstEffect = null;
current$$1.lastEffect = null;
current$$1.pendingProps = null;
current$$1.memoizedProps = null;
null !== alternate && detachFiber(alternate);
}
function commitWork(current$$1, finishedWork) {
switch (finishedWork.tag) {
case 0:
@@ -6345,18 +6359,7 @@ function commitRootImpl(root, renderPriorityLevel) {
snapshot.sibling.return = snapshot.return;
snapshot = snapshot.sibling;
}
prevProps.return = null;
prevProps.child = null;
prevProps.memoizedState = null;
prevProps.updateQueue = null;
prevProps.dependencies = null;
var alternate = prevProps.alternate;
null !== alternate &&
((alternate.return = null),
(alternate.child = null),
(alternate.memoizedState = null),
(alternate.updateQueue = null),
(alternate.dependencies = null));
detachFiber(prevProps);
}
nextEffect = nextEffect.nextEffect;
}
@@ -6378,10 +6381,10 @@ function commitRootImpl(root, renderPriorityLevel) {
) {
var effectTag$jscomp$0 = nextEffect.effectTag;
if (effectTag$jscomp$0 & 36) {
current$$1 = effectTag;
prevProps = effectTag;
var current$$1$jscomp$1 = nextEffect.alternate;
currentRef = nextEffect;
alternate = current$$1$jscomp$0;
current$$1 = current$$1$jscomp$0;
switch (currentRef.tag) {
case 0:
case 11:
@@ -6413,26 +6416,26 @@ function commitRootImpl(root, renderPriorityLevel) {
currentRef,
updateQueue,
instance$jscomp$0,
alternate
current$$1
);
break;
case 3:
var _updateQueue = currentRef.updateQueue;
if (null !== _updateQueue) {
current$$1 = null;
prevProps = null;
if (null !== currentRef.child)
switch (currentRef.child.tag) {
case 5:
current$$1 = currentRef.child.stateNode.canonical;
prevProps = currentRef.child.stateNode.canonical;
break;
case 1:
current$$1 = currentRef.child.stateNode;
prevProps = currentRef.child.stateNode;
}
commitUpdateQueue(
currentRef,
_updateQueue,
current$$1,
alternate
prevProps,
current$$1
);
}
break;
@@ -6458,7 +6461,7 @@ function commitRootImpl(root, renderPriorityLevel) {
currentRef.treeBaseDuration,
currentRef.actualStartTime,
commitTime,
current$$1.memoizedInteractions
prevProps.memoizedInteractions
);
break;
case 13:
@@ -5354,6 +5354,20 @@ function commitUnmount(current$$1$jscomp$0, renderPriorityLevel) {
createChildNodeSet(current$$1$jscomp$0.stateNode.containerInfo);
}
}
function detachFiber(current$$1) {
var alternate = current$$1.alternate;
current$$1.return = null;
current$$1.child = null;
current$$1.memoizedState = null;
current$$1.updateQueue = null;
current$$1.dependencies = null;
current$$1.alternate = null;
current$$1.firstEffect = null;
current$$1.lastEffect = null;
current$$1.pendingProps = null;
current$$1.memoizedProps = null;
null !== alternate && detachFiber(alternate);
}
function commitWork(current$$1, finishedWork) {
switch (finishedWork.tag) {
case 0:
@@ -6345,18 +6359,7 @@ function commitRootImpl(root, renderPriorityLevel) {
snapshot.sibling.return = snapshot.return;
snapshot = snapshot.sibling;
}
prevProps.return = null;
prevProps.child = null;
prevProps.memoizedState = null;
prevProps.updateQueue = null;
prevProps.dependencies = null;
var alternate = prevProps.alternate;
null !== alternate &&
((alternate.return = null),
(alternate.child = null),
(alternate.memoizedState = null),
(alternate.updateQueue = null),
(alternate.dependencies = null));
detachFiber(prevProps);
}
nextEffect = nextEffect.nextEffect;
}
@@ -6378,10 +6381,10 @@ function commitRootImpl(root, renderPriorityLevel) {
) {
var effectTag$jscomp$0 = nextEffect.effectTag;
if (effectTag$jscomp$0 & 36) {
current$$1 = effectTag;
prevProps = effectTag;
var current$$1$jscomp$1 = nextEffect.alternate;
currentRef = nextEffect;
alternate = current$$1$jscomp$0;
current$$1 = current$$1$jscomp$0;
switch (currentRef.tag) {
case 0:
case 11:
@@ -6413,26 +6416,26 @@ function commitRootImpl(root, renderPriorityLevel) {
currentRef,
updateQueue,
instance$jscomp$0,
alternate
current$$1
);
break;
case 3:
var _updateQueue = currentRef.updateQueue;
if (null !== _updateQueue) {
current$$1 = null;
prevProps = null;
if (null !== currentRef.child)
switch (currentRef.child.tag) {
case 5:
current$$1 = currentRef.child.stateNode.canonical;
prevProps = currentRef.child.stateNode.canonical;
break;
case 1:
current$$1 = currentRef.child.stateNode;
prevProps = currentRef.child.stateNode;
}
commitUpdateQueue(
currentRef,
_updateQueue,
current$$1,
alternate
prevProps,
current$$1
);
}
break;
@@ -6458,7 +6461,7 @@ function commitRootImpl(root, renderPriorityLevel) {
currentRef.treeBaseDuration,
currentRef.actualStartTime,
commitTime,
current$$1.memoizedInteractions
prevProps.memoizedInteractions
);
break;
case 13:
@@ -6478,7 +6478,11 @@ function scheduleFibersWithFamiliesRecursively(
if (staleFamilies.has(family)) {
needsRemount = true;
} else if (updatedFamilies.has(family)) {
needsRender = true;
if (tag === ClassComponent) {
needsRemount = true;
} else {
needsRender = true;
}
}
}
}
@@ -10699,6 +10703,11 @@ function renderWithHooks(
do {
didScheduleRenderPhaseUpdate = false;
numberOfReRenders += 1;
{
// Even when hot reloading, allow dependencies to stabilize
// after first render to prevent infinite render phase updates.
ignorePreviousDependencies = false;
}
// Start over from the beginning of the list
nextCurrentHook = current !== null ? current.memoizedState : null;
@@ -17436,6 +17445,7 @@ function commitNestedUnmounts(root, renderPriorityLevel) {
}
function detachFiber(current$$1) {
var alternate = current$$1.alternate;
// Cut off the return pointers to disconnect it from the tree. Ideally, we
// should clear the child pointer of the parent alternate to let this
// get GC:ed but we don't know which for sure which parent is the current
@@ -17446,13 +17456,13 @@ function detachFiber(current$$1) {
current$$1.memoizedState = null;
current$$1.updateQueue = null;
current$$1.dependencies = null;
var alternate = current$$1.alternate;
current$$1.alternate = null;
current$$1.firstEffect = null;
current$$1.lastEffect = null;
current$$1.pendingProps = null;
current$$1.memoizedProps = null;
if (alternate !== null) {
alternate.return = null;
alternate.child = null;
alternate.memoizedState = null;
alternate.updateQueue = null;
alternate.dependencies = null;
detachFiber(alternate);
}
}
@@ -6474,7 +6474,11 @@ function scheduleFibersWithFamiliesRecursively(
if (staleFamilies.has(family)) {
needsRemount = true;
} else if (updatedFamilies.has(family)) {
needsRender = true;
if (tag === ClassComponent) {
needsRemount = true;
} else {
needsRender = true;
}
}
}
}
@@ -10695,6 +10699,11 @@ function renderWithHooks(
do {
didScheduleRenderPhaseUpdate = false;
numberOfReRenders += 1;
{
// Even when hot reloading, allow dependencies to stabilize
// after first render to prevent infinite render phase updates.
ignorePreviousDependencies = false;
}
// Start over from the beginning of the list
nextCurrentHook = current !== null ? current.memoizedState : null;
@@ -17432,6 +17441,7 @@ function commitNestedUnmounts(root, renderPriorityLevel) {
}
function detachFiber(current$$1) {
var alternate = current$$1.alternate;
// Cut off the return pointers to disconnect it from the tree. Ideally, we
// should clear the child pointer of the parent alternate to let this
// get GC:ed but we don't know which for sure which parent is the current
@@ -17442,13 +17452,13 @@ function detachFiber(current$$1) {
current$$1.memoizedState = null;
current$$1.updateQueue = null;
current$$1.dependencies = null;
var alternate = current$$1.alternate;
current$$1.alternate = null;
current$$1.firstEffect = null;
current$$1.lastEffect = null;
current$$1.pendingProps = null;
current$$1.memoizedProps = null;
if (alternate !== null) {
alternate.return = null;
alternate.child = null;
alternate.memoizedState = null;
alternate.updateQueue = null;
alternate.dependencies = null;
detachFiber(alternate);
}
}
@@ -4838,6 +4838,20 @@ function commitUnmount(current$$1$jscomp$0, renderPriorityLevel) {
unmountHostComponents(current$$1$jscomp$0, renderPriorityLevel);
}
}
function detachFiber(current$$1) {
var alternate = current$$1.alternate;
current$$1.return = null;
current$$1.child = null;
current$$1.memoizedState = null;
current$$1.updateQueue = null;
current$$1.dependencies = null;
current$$1.alternate = null;
current$$1.firstEffect = null;
current$$1.lastEffect = null;
current$$1.pendingProps = null;
current$$1.memoizedProps = null;
null !== alternate && detachFiber(alternate);
}
function isHostParent(fiber) {
return 5 === fiber.tag || 3 === fiber.tag || 4 === fiber.tag;
}
@@ -6418,20 +6432,9 @@ function commitRootImpl(root, renderPriorityLevel) {
commitWork(nextEffect.alternate, nextEffect);
break;
case 8:
prevProps = nextEffect;
unmountHostComponents(prevProps, current$$1);
prevProps.return = null;
prevProps.child = null;
prevProps.memoizedState = null;
prevProps.updateQueue = null;
prevProps.dependencies = null;
var alternate = prevProps.alternate;
null !== alternate &&
((alternate.return = null),
(alternate.child = null),
(alternate.memoizedState = null),
(alternate.updateQueue = null),
(alternate.dependencies = null));
(prevProps = nextEffect),
unmountHostComponents(prevProps, current$$1),
detachFiber(prevProps);
}
nextEffect = nextEffect.nextEffect;
}
@@ -6494,19 +6497,19 @@ function commitRootImpl(root, renderPriorityLevel) {
case 3:
var _updateQueue = current$$1$jscomp$0.updateQueue;
if (null !== _updateQueue) {
alternate = null;
current$$1 = null;
if (null !== current$$1$jscomp$0.child)
switch (current$$1$jscomp$0.child.tag) {
case 5:
alternate = current$$1$jscomp$0.child.stateNode;
current$$1 = current$$1$jscomp$0.child.stateNode;
break;
case 1:
alternate = current$$1$jscomp$0.child.stateNode;
current$$1 = current$$1$jscomp$0.child.stateNode;
}
commitUpdateQueue(
current$$1$jscomp$0,
_updateQueue,
alternate,
current$$1,
currentRef
);
}
@@ -4838,6 +4838,20 @@ function commitUnmount(current$$1$jscomp$0, renderPriorityLevel) {
unmountHostComponents(current$$1$jscomp$0, renderPriorityLevel);
}
}
function detachFiber(current$$1) {
var alternate = current$$1.alternate;
current$$1.return = null;
current$$1.child = null;
current$$1.memoizedState = null;
current$$1.updateQueue = null;
current$$1.dependencies = null;
current$$1.alternate = null;
current$$1.firstEffect = null;
current$$1.lastEffect = null;
current$$1.pendingProps = null;
current$$1.memoizedProps = null;
null !== alternate && detachFiber(alternate);
}
function isHostParent(fiber) {
return 5 === fiber.tag || 3 === fiber.tag || 4 === fiber.tag;
}
@@ -6418,20 +6432,9 @@ function commitRootImpl(root, renderPriorityLevel) {
commitWork(nextEffect.alternate, nextEffect);
break;
case 8:
prevProps = nextEffect;
unmountHostComponents(prevProps, current$$1);
prevProps.return = null;
prevProps.child = null;
prevProps.memoizedState = null;
prevProps.updateQueue = null;
prevProps.dependencies = null;
var alternate = prevProps.alternate;
null !== alternate &&
((alternate.return = null),
(alternate.child = null),
(alternate.memoizedState = null),
(alternate.updateQueue = null),
(alternate.dependencies = null));
(prevProps = nextEffect),
unmountHostComponents(prevProps, current$$1),
detachFiber(prevProps);
}
nextEffect = nextEffect.nextEffect;
}
@@ -6494,19 +6497,19 @@ function commitRootImpl(root, renderPriorityLevel) {
case 3:
var _updateQueue = current$$1$jscomp$0.updateQueue;
if (null !== _updateQueue) {
alternate = null;
current$$1 = null;
if (null !== current$$1$jscomp$0.child)
switch (current$$1$jscomp$0.child.tag) {
case 5:
alternate = current$$1$jscomp$0.child.stateNode;
current$$1 = current$$1$jscomp$0.child.stateNode;
break;
case 1:
alternate = current$$1$jscomp$0.child.stateNode;
current$$1 = current$$1$jscomp$0.child.stateNode;
}
commitUpdateQueue(
current$$1$jscomp$0,
_updateQueue,
alternate,
current$$1,
currentRef
);
}
@@ -5194,6 +5194,20 @@ function commitUnmount(current$$1$jscomp$0, renderPriorityLevel) {
unmountHostComponents(current$$1$jscomp$0, renderPriorityLevel);
}
}
function detachFiber(current$$1) {
var alternate = current$$1.alternate;
current$$1.return = null;
current$$1.child = null;
current$$1.memoizedState = null;
current$$1.updateQueue = null;
current$$1.dependencies = null;
current$$1.alternate = null;
current$$1.firstEffect = null;
current$$1.lastEffect = null;
current$$1.pendingProps = null;
current$$1.memoizedProps = null;
null !== alternate && detachFiber(alternate);
}
function isHostParent(fiber) {
return 5 === fiber.tag || 3 === fiber.tag || 4 === fiber.tag;
}
@@ -6517,20 +6531,9 @@ function commitRootImpl(root, renderPriorityLevel) {
commitWork(nextEffect.alternate, nextEffect);
break;
case 8:
prevProps = nextEffect;
unmountHostComponents(prevProps, current$$1);
prevProps.return = null;
prevProps.child = null;
prevProps.memoizedState = null;
prevProps.updateQueue = null;
prevProps.dependencies = null;
var alternate = prevProps.alternate;
null !== alternate &&
((alternate.return = null),
(alternate.child = null),
(alternate.memoizedState = null),
(alternate.updateQueue = null),
(alternate.dependencies = null));
(prevProps = nextEffect),
unmountHostComponents(prevProps, current$$1),
detachFiber(prevProps);
}
nextEffect = nextEffect.nextEffect;
}
@@ -6552,10 +6555,10 @@ function commitRootImpl(root, renderPriorityLevel) {
) {
var effectTag$jscomp$0 = nextEffect.effectTag;
if (effectTag$jscomp$0 & 36) {
current$$1 = effectTag;
prevProps = effectTag;
var current$$1$jscomp$1 = nextEffect.alternate;
currentRef = nextEffect;
alternate = current$$1$jscomp$0;
current$$1 = current$$1$jscomp$0;
switch (currentRef.tag) {
case 0:
case 11:
@@ -6587,26 +6590,26 @@ function commitRootImpl(root, renderPriorityLevel) {
currentRef,
updateQueue,
instance$jscomp$0,
alternate
current$$1
);
break;
case 3:
var _updateQueue = currentRef.updateQueue;
if (null !== _updateQueue) {
current$$1 = null;
prevProps = null;
if (null !== currentRef.child)
switch (currentRef.child.tag) {
case 5:
current$$1 = currentRef.child.stateNode;
prevProps = currentRef.child.stateNode;
break;
case 1:
current$$1 = currentRef.child.stateNode;
prevProps = currentRef.child.stateNode;
}
commitUpdateQueue(
currentRef,
_updateQueue,
current$$1,
alternate
prevProps,
current$$1
);
}
break;
@@ -6626,7 +6629,7 @@ function commitRootImpl(root, renderPriorityLevel) {
currentRef.treeBaseDuration,
currentRef.actualStartTime,
commitTime,
current$$1.memoizedInteractions
prevProps.memoizedInteractions
);
break;
case 13:
@@ -5194,6 +5194,20 @@ function commitUnmount(current$$1$jscomp$0, renderPriorityLevel) {
unmountHostComponents(current$$1$jscomp$0, renderPriorityLevel);
}
}
function detachFiber(current$$1) {
var alternate = current$$1.alternate;
current$$1.return = null;
current$$1.child = null;
current$$1.memoizedState = null;
current$$1.updateQueue = null;
current$$1.dependencies = null;
current$$1.alternate = null;
current$$1.firstEffect = null;
current$$1.lastEffect = null;
current$$1.pendingProps = null;
current$$1.memoizedProps = null;
null !== alternate && detachFiber(alternate);
}
function isHostParent(fiber) {
return 5 === fiber.tag || 3 === fiber.tag || 4 === fiber.tag;
}
@@ -6517,20 +6531,9 @@ function commitRootImpl(root, renderPriorityLevel) {
commitWork(nextEffect.alternate, nextEffect);
break;
case 8:
prevProps = nextEffect;
unmountHostComponents(prevProps, current$$1);
prevProps.return = null;
prevProps.child = null;
prevProps.memoizedState = null;
prevProps.updateQueue = null;
prevProps.dependencies = null;
var alternate = prevProps.alternate;
null !== alternate &&
((alternate.return = null),
(alternate.child = null),
(alternate.memoizedState = null),
(alternate.updateQueue = null),
(alternate.dependencies = null));
(prevProps = nextEffect),
unmountHostComponents(prevProps, current$$1),
detachFiber(prevProps);
}
nextEffect = nextEffect.nextEffect;
}
@@ -6552,10 +6555,10 @@ function commitRootImpl(root, renderPriorityLevel) {
) {
var effectTag$jscomp$0 = nextEffect.effectTag;
if (effectTag$jscomp$0 & 36) {
current$$1 = effectTag;
prevProps = effectTag;
var current$$1$jscomp$1 = nextEffect.alternate;
currentRef = nextEffect;
alternate = current$$1$jscomp$0;
current$$1 = current$$1$jscomp$0;
switch (currentRef.tag) {
case 0:
case 11:
@@ -6587,26 +6590,26 @@ function commitRootImpl(root, renderPriorityLevel) {
currentRef,
updateQueue,
instance$jscomp$0,
alternate
current$$1
);
break;
case 3:
var _updateQueue = currentRef.updateQueue;
if (null !== _updateQueue) {
current$$1 = null;
prevProps = null;
if (null !== currentRef.child)
switch (currentRef.child.tag) {
case 5:
current$$1 = currentRef.child.stateNode;
prevProps = currentRef.child.stateNode;
break;
case 1:
current$$1 = currentRef.child.stateNode;
prevProps = currentRef.child.stateNode;
}
commitUpdateQueue(
currentRef,
_updateQueue,
current$$1,
alternate
prevProps,
current$$1
);
}
break;
@@ -6626,7 +6629,7 @@ function commitRootImpl(root, renderPriorityLevel) {
currentRef.treeBaseDuration,
currentRef.actualStartTime,
commitTime,
current$$1.memoizedInteractions
prevProps.memoizedInteractions
);
break;
case 13:
+194 -192
View File
@@ -1,14 +1,14 @@
PODS:
- boost-for-react-native (1.63.0)
- DoubleConversion (1.1.6)
- FBLazyVector (1000.0.0)
- FBReactNativeSpec (1000.0.0):
- FBLazyVector (0.61.0-rc.2)
- FBReactNativeSpec (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- RCTRequired (= 1000.0.0)
- RCTTypeSafety (= 1000.0.0)
- React-Core (= 1000.0.0)
- React-jsi (= 1000.0.0)
- ReactCommon/turbomodule/core (= 1000.0.0)
- RCTRequired (= 0.61.0-rc.2)
- RCTTypeSafety (= 0.61.0-rc.2)
- React-Core (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- ReactCommon/turbomodule/core (= 0.61.0-rc.2)
- Folly (2018.10.22.00):
- boost-for-react-native
- DoubleConversion
@@ -19,234 +19,236 @@ PODS:
- DoubleConversion
- glog
- glog (0.3.5)
- RCTRequired (1000.0.0)
- RCTTypeSafety (1000.0.0):
- FBLazyVector (= 1000.0.0)
- RCTRequired (0.61.0-rc.2)
- RCTTypeSafety (0.61.0-rc.2):
- FBLazyVector (= 0.61.0-rc.2)
- Folly (= 2018.10.22.00)
- RCTRequired (= 1000.0.0)
- React-Core (= 1000.0.0)
- React (1000.0.0):
- React-Core (= 1000.0.0)
- React-Core/DevSupport (= 1000.0.0)
- React-Core/RCTWebSocket (= 1000.0.0)
- React-RCTActionSheet (= 1000.0.0)
- React-RCTAnimation (= 1000.0.0)
- React-RCTBlob (= 1000.0.0)
- React-RCTImage (= 1000.0.0)
- React-RCTLinking (= 1000.0.0)
- React-RCTNetwork (= 1000.0.0)
- React-RCTSettings (= 1000.0.0)
- React-RCTText (= 1000.0.0)
- React-RCTVibration (= 1000.0.0)
- React-ART (1000.0.0):
- React-Core/ARTHeaders (= 1000.0.0)
- React-Core (1000.0.0):
- RCTRequired (= 0.61.0-rc.2)
- React-Core (= 0.61.0-rc.2)
- React (0.61.0-rc.2):
- React-Core (= 0.61.0-rc.2)
- React-Core/DevSupport (= 0.61.0-rc.2)
- React-Core/RCTWebSocket (= 0.61.0-rc.2)
- React-RCTActionSheet (= 0.61.0-rc.2)
- React-RCTAnimation (= 0.61.0-rc.2)
- React-RCTBlob (= 0.61.0-rc.2)
- React-RCTImage (= 0.61.0-rc.2)
- React-RCTLinking (= 0.61.0-rc.2)
- React-RCTNetwork (= 0.61.0-rc.2)
- React-RCTSettings (= 0.61.0-rc.2)
- React-RCTText (= 0.61.0-rc.2)
- React-RCTVibration (= 0.61.0-rc.2)
- React-ART (0.61.0-rc.2):
- React-Core/ARTHeaders (= 0.61.0-rc.2)
- React-Core (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-Core/Default (= 1000.0.0)
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-Core/ARTHeaders (1000.0.0):
- React-Core/Default (= 0.61.0-rc.2)
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- Yoga
- React-Core/ARTHeaders (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-Core/Default
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-Core/CoreModulesHeaders (1000.0.0):
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- Yoga
- React-Core/CoreModulesHeaders (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-Core/Default
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-Core/Default (1000.0.0):
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- Yoga
- React-Core/Default (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-Core/DevSupport (1000.0.0):
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- Yoga
- React-Core/DevSupport (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-Core/Default (= 1000.0.0)
- React-Core/RCTWebSocket (= 1000.0.0)
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- React-jsinspector (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-Core/RCTActionSheetHeaders (1000.0.0):
- React-Core/Default (= 0.61.0-rc.2)
- React-Core/RCTWebSocket (= 0.61.0-rc.2)
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- React-jsinspector (= 0.61.0-rc.2)
- Yoga
- React-Core/RCTActionSheetHeaders (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-Core/Default
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-Core/RCTAnimationHeaders (1000.0.0):
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- Yoga
- React-Core/RCTAnimationHeaders (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-Core/Default
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-Core/RCTBlobHeaders (1000.0.0):
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- Yoga
- React-Core/RCTBlobHeaders (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-Core/Default
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-Core/RCTImageHeaders (1000.0.0):
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- Yoga
- React-Core/RCTImageHeaders (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-Core/Default
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-Core/RCTLinkingHeaders (1000.0.0):
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- Yoga
- React-Core/RCTLinkingHeaders (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-Core/Default
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-Core/RCTNetworkHeaders (1000.0.0):
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- Yoga
- React-Core/RCTNetworkHeaders (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-Core/Default
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-Core/RCTPushNotificationHeaders (1000.0.0):
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- Yoga
- React-Core/RCTPushNotificationHeaders (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-Core/Default
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-Core/RCTSettingsHeaders (1000.0.0):
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- Yoga
- React-Core/RCTSettingsHeaders (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-Core/Default
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-Core/RCTTextHeaders (1000.0.0):
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- Yoga
- React-Core/RCTTextHeaders (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-Core/Default
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-Core/RCTVibrationHeaders (1000.0.0):
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- Yoga
- React-Core/RCTVibrationHeaders (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-Core/Default
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-Core/RCTWebSocket (1000.0.0):
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- Yoga
- React-Core/RCTWebSocket (0.61.0-rc.2):
- Folly (= 2018.10.22.00)
- glog
- React-Core/Default (= 1000.0.0)
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsiexecutor (= 1000.0.0)
- yoga (= 1000.0.0.React)
- React-CoreModules (1000.0.0):
- FBReactNativeSpec (= 1000.0.0)
- React-Core/Default (= 0.61.0-rc.2)
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsiexecutor (= 0.61.0-rc.2)
- Yoga
- React-CoreModules (0.61.0-rc.2):
- FBReactNativeSpec (= 0.61.0-rc.2)
- Folly (= 2018.10.22.00)
- React-Core/CoreModulesHeaders (= 1000.0.0)
- ReactCommon/turbomodule/core (= 1000.0.0)
- React-cxxreact (1000.0.0):
- RCTTypeSafety (= 0.61.0-rc.2)
- React-Core/CoreModulesHeaders (= 0.61.0-rc.2)
- React-RCTImage (= 0.61.0-rc.2)
- ReactCommon/turbomodule/core (= 0.61.0-rc.2)
- React-cxxreact (0.61.0-rc.2):
- boost-for-react-native (= 1.63.0)
- DoubleConversion
- Folly (= 2018.10.22.00)
- glog
- React-jsinspector (= 1000.0.0)
- React-jsi (1000.0.0):
- React-jsinspector (= 0.61.0-rc.2)
- React-jsi (0.61.0-rc.2):
- boost-for-react-native (= 1.63.0)
- DoubleConversion
- Folly (= 2018.10.22.00)
- glog
- React-jsi/Default (= 1000.0.0)
- React-jsi/Default (1000.0.0):
- React-jsi/Default (= 0.61.0-rc.2)
- React-jsi/Default (0.61.0-rc.2):
- boost-for-react-native (= 1.63.0)
- DoubleConversion
- Folly (= 2018.10.22.00)
- glog
- React-jsiexecutor (1000.0.0):
- React-jsiexecutor (0.61.0-rc.2):
- DoubleConversion
- Folly (= 2018.10.22.00)
- glog
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-jsinspector (1000.0.0)
- React-RCTActionSheet (1000.0.0):
- React-Core/RCTActionSheetHeaders (= 1000.0.0)
- React-RCTAnimation (1000.0.0):
- React-Core/RCTAnimationHeaders (= 1000.0.0)
- React-RCTBlob (1000.0.0):
- React-Core/RCTBlobHeaders (= 1000.0.0)
- React-Core/RCTWebSocket (= 1000.0.0)
- React-jsi (= 1000.0.0)
- React-RCTNetwork (= 1000.0.0)
- React-RCTImage (1000.0.0):
- React-Core/RCTImageHeaders (= 1000.0.0)
- React-RCTNetwork (= 1000.0.0)
- React-RCTLinking (1000.0.0):
- React-Core/RCTLinkingHeaders (= 1000.0.0)
- React-RCTNetwork (1000.0.0):
- React-Core/RCTNetworkHeaders (= 1000.0.0)
- React-RCTPushNotification (1000.0.0):
- React-Core/RCTPushNotificationHeaders (= 1000.0.0)
- React-RCTSettings (1000.0.0):
- React-Core/RCTSettingsHeaders (= 1000.0.0)
- React-RCTTest (1000.0.0):
- React-Core (= 1000.0.0)
- React-RCTText (1000.0.0):
- React-Core/RCTTextHeaders (= 1000.0.0)
- React-RCTVibration (1000.0.0):
- React-Core/RCTVibrationHeaders (= 1000.0.0)
- ReactCommon/jscallinvoker (1000.0.0):
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-jsinspector (0.61.0-rc.2)
- React-RCTActionSheet (0.61.0-rc.2):
- React-Core/RCTActionSheetHeaders (= 0.61.0-rc.2)
- React-RCTAnimation (0.61.0-rc.2):
- React-Core/RCTAnimationHeaders (= 0.61.0-rc.2)
- React-RCTBlob (0.61.0-rc.2):
- React-Core/RCTBlobHeaders (= 0.61.0-rc.2)
- React-Core/RCTWebSocket (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- React-RCTNetwork (= 0.61.0-rc.2)
- React-RCTImage (0.61.0-rc.2):
- React-Core/RCTImageHeaders (= 0.61.0-rc.2)
- React-RCTNetwork (= 0.61.0-rc.2)
- React-RCTLinking (0.61.0-rc.2):
- React-Core/RCTLinkingHeaders (= 0.61.0-rc.2)
- React-RCTNetwork (0.61.0-rc.2):
- React-Core/RCTNetworkHeaders (= 0.61.0-rc.2)
- React-RCTPushNotification (0.61.0-rc.2):
- React-Core/RCTPushNotificationHeaders (= 0.61.0-rc.2)
- React-RCTSettings (0.61.0-rc.2):
- React-Core/RCTSettingsHeaders (= 0.61.0-rc.2)
- React-RCTTest (0.61.0-rc.2):
- React-Core (= 0.61.0-rc.2)
- React-RCTText (0.61.0-rc.2):
- React-Core/RCTTextHeaders (= 0.61.0-rc.2)
- React-RCTVibration (0.61.0-rc.2):
- React-Core/RCTVibrationHeaders (= 0.61.0-rc.2)
- ReactCommon/jscallinvoker (0.61.0-rc.2):
- DoubleConversion
- Folly (= 2018.10.22.00)
- glog
- React-cxxreact (= 1000.0.0)
- ReactCommon/turbomodule/core (1000.0.0):
- React-cxxreact (= 0.61.0-rc.2)
- ReactCommon/turbomodule/core (0.61.0-rc.2):
- DoubleConversion
- Folly (= 2018.10.22.00)
- glog
- React-Core (= 1000.0.0)
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- ReactCommon/jscallinvoker (= 1000.0.0)
- ReactCommon/turbomodule/samples (1000.0.0):
- React-Core (= 0.61.0-rc.2)
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- ReactCommon/jscallinvoker (= 0.61.0-rc.2)
- ReactCommon/turbomodule/samples (0.61.0-rc.2):
- DoubleConversion
- Folly (= 2018.10.22.00)
- glog
- React-Core (= 1000.0.0)
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- ReactCommon/jscallinvoker (= 1000.0.0)
- ReactCommon/turbomodule/core (= 1000.0.0)
- yoga (1000.0.0.React)
- React-Core (= 0.61.0-rc.2)
- React-cxxreact (= 0.61.0-rc.2)
- React-jsi (= 0.61.0-rc.2)
- ReactCommon/jscallinvoker (= 0.61.0-rc.2)
- ReactCommon/turbomodule/core (= 0.61.0-rc.2)
- Yoga (1.14.0)
DEPENDENCIES:
- DoubleConversion (from `../third-party-podspecs/DoubleConversion.podspec`)
@@ -280,7 +282,7 @@ DEPENDENCIES:
- ReactCommon/jscallinvoker (from `../ReactCommon`)
- ReactCommon/turbomodule/core (from `../ReactCommon`)
- ReactCommon/turbomodule/samples (from `../ReactCommon`)
- yoga (from `../ReactCommon/yoga`)
- Yoga (from `../ReactCommon/yoga`)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
@@ -341,39 +343,39 @@ EXTERNAL SOURCES:
:path: "../Libraries/Vibration"
ReactCommon:
:path: "../ReactCommon"
yoga:
Yoga:
:path: "../ReactCommon/yoga"
SPEC CHECKSUMS:
boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
DoubleConversion: 5805e889d232975c086db112ece9ed034df7a0b2
FBLazyVector: 34431b7e61740bed29b082ff81500b0ffafaffa0
FBReactNativeSpec: e9febd2d5cc091662f172724165922b2e28d10a3
FBLazyVector: a00f8540f34132ec94dd125c952b00af33d35683
FBReactNativeSpec: c5adea5486b0ba64e5729e0ab75869df362ff9db
Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51
glog: 1f3da668190260b06b429bb211bfbee5cd790c28
RCTRequired: 33f3b89d2d82ef01c02b9b4f8146c43762e509d8
RCTTypeSafety: 2b1cb2d92b779aa9a3522f67bd4f07e6b6d0797e
React: 28a654b69575941571c073a656bc06795825e7f7
React-ART: a5da06a892342d03896e0db45a7072525981f63c
React-Core: 47b8ab211d9325292811e62ee23c54b464853111
React-CoreModules: 38d8cc34497674ae3d411e644a9b17ad75ef3f74
React-cxxreact: 7c4242192149ce0205b53efaa03e3bf86ba4337c
React-jsi: 98d1f9d8a79d2720ba6a44c2d928a77f315b7e4f
React-jsiexecutor: c0ab8c80a6e88380d63f583690a50d4a723b47b5
React-jsinspector: ea0a218071a11c3687cef2480580180caa6a64c0
React-RCTActionSheet: 090e7bd7c5774d919c47c4eeff78223a7fd8c19c
React-RCTAnimation: 73d536fff417a101724d9529189c95a94263710c
React-RCTBlob: 86017e0ba937b94445c5f680fef27ab831700fe7
React-RCTImage: 7f5c9bff34905f1bc216be512ba0ae68f872208a
React-RCTLinking: d7d7f792e63a8d57380cecbb9b7a3b31f92d1bb6
React-RCTNetwork: c8f9d40297f35ea3792ea81866f33e8b45c25935
React-RCTPushNotification: acffa8af6a20e6d41b041a8c4cb4bea0de9df0dd
React-RCTSettings: dd4009546ce88c3647c32f0b5922459ab313fdca
React-RCTTest: 73df09ec226fcad6e7e058a313e5dd16cccf86a8
React-RCTText: 9078167d3bc011162326f2d8ef4dd580ec1eca17
React-RCTVibration: 63c20d89204937ff8c7bbc1e712383347e6fbd90
ReactCommon: 63d1a6355d5810a21a61efda9ac93804571a1b8b
yoga: b72aa5b3708cc93c5897f8297122d6eba1331e07
RCTRequired: 58b2e00307b037eed686e1c254bffb219c62cbfe
RCTTypeSafety: 9dd7892e0a38316828e24c604856a2af28e0e17a
React: b7f3b36e580ff5901e40cbc2b173ad5abf5213a1
React-ART: cea14346f2818f3313b1da428b0a24159a8e88d2
React-Core: bcec296416d2ad3a06d2736d120e0a39b23ff21c
React-CoreModules: dc73c57572c1ecd3aea384c8cedeb08334aa14f1
React-cxxreact: 336fc75245e991c148e9a0a1854b4c96610e51b2
React-jsi: 32a6180d04a685f60d23017faae06d4990af01f9
React-jsiexecutor: 47b944387f9ed0150ca844df1bc4fb7469e03d36
React-jsinspector: 40beae2c3c855b931dc178f2e9f42f2eb7e3e5d4
React-RCTActionSheet: 0cbaa4c0be3ca98fcfe861f0d386cc6eb74b78e7
React-RCTAnimation: 42ca568866a71e5946537720f9961f594b92c37a
React-RCTBlob: c05d81b7ebe44c71028e66f439adaeddb3c14482
React-RCTImage: e01a52f375fb46cd60bca4edb25d444011547908
React-RCTLinking: 637fd06bc5240852142a9a1039c31cd826c1d96a
React-RCTNetwork: e50c40640a9668e3321ed5d535110113e0aa14d7
React-RCTPushNotification: 6c7a17dfb1a6c525f00ec04b140df0205d2efc9f
React-RCTSettings: b024097fd8b14802f8b7a74cf172b6ddbf3216d1
React-RCTTest: b72a9c3d060d9da7fe3ecc29d027f79ee21ecdf8
React-RCTText: 8277a56b481dc3e3407fa8582dba530bb6abaa01
React-RCTVibration: 98a53ac8e638fdf5a215a10da9ae94a08bdf1c2a
ReactCommon: 0ea9172090c512b2b07e56c0fc9c450d56317bdc
Yoga: ec296b22dbed143b218926f1a2652c6a647874db
PODFILE CHECKSUM: 060903e270072f1e192b064848e6c34528af1c87
-6
View File
@@ -151,12 +151,6 @@ android {
signingConfig signingConfigs.release
}
}
packagingOptions {
pickFirst '**/armeabi-v7a/libc++_shared.so'
pickFirst '**/x86/libc++_shared.so'
pickFirst '**/arm64-v8a/libc++_shared.so'
pickFirst '**/x86_64/libc++_shared.so'
}
}
dependencies {
+1 -1
View File
@@ -96,6 +96,6 @@ Pod::Spec.new do |s|
s.dependency "React-cxxreact", version
s.dependency "React-jsi", version
s.dependency "React-jsiexecutor", version
s.dependency "yoga", "#{version}.React"
s.dependency "Yoga"
s.dependency "glog"
end
+6
View File
@@ -93,6 +93,12 @@ NSString *RCTBridgeModuleNameForClass(Class cls)
static BOOL turboModuleEnabled = NO;
BOOL RCTTurboModuleEnabled(void)
{
#if RCT_DEBUG
// TODO(T53341772): Allow TurboModule for test environment. Right now this breaks RNTester tests if enabled.
if (RCTRunningInTestEnvironment()) {
return NO;
}
#endif
return turboModuleEnabled;
}
+5 -5
View File
@@ -21,11 +21,11 @@ NSDictionary* RCTGetReactNativeVersion(void)
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^(void){
__rnVersion = @{
RCTVersionMajor: @(0),
RCTVersionMinor: @(0),
RCTVersionPatch: @(0),
RCTVersionPrerelease: [NSNull null],
};
RCTVersionMajor: @(0),
RCTVersionMinor: @(61),
RCTVersionPatch: @(1),
RCTVersionPrerelease: [NSNull null],
};
});
return __rnVersion;
}
+16
View File
@@ -0,0 +1,16 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <Foundation/Foundation.h>
@interface RCTWeakProxy : NSObject
@property (nonatomic, weak, readonly) id target;
+ (instancetype)weakProxyWithTarget:(id)target;
@end
+30
View File
@@ -0,0 +1,30 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "RCTWeakProxy.h"
@implementation RCTWeakProxy
- (instancetype)initWithTarget:(id)target
{
if (self = [super init]) {
_target = target;
}
return self;
}
+ (instancetype)weakProxyWithTarget:(id)target
{
return [[RCTWeakProxy alloc] initWithTarget:target];
}
- (id)forwardingTargetForSelector:(SEL)aSelector
{
return _target;
}
@end
@@ -39,6 +39,8 @@ Pod::Spec.new do |s|
}
s.dependency "FBReactNativeSpec", version
s.dependency "RCTTypeSafety", version
s.dependency "React-RCTImage", version
s.dependency "Folly", folly_version
s.dependency "React-Core/CoreModulesHeaders", version
s.dependency "ReactCommon/turbomodule/core", version
+8 -2
View File
@@ -10,6 +10,7 @@
#import "RCTBridge.h"
#import "RCTModalHostView.h"
#import "RCTModalHostViewController.h"
#import "RCTModalManager.h"
#import "RCTShadowView.h"
#import "RCTUtils.h"
@@ -80,10 +81,15 @@ RCT_EXPORT_MODULE()
- (void)dismissModalHostView:(RCTModalHostView *)modalHostView withViewController:(RCTModalHostViewController *)viewController animated:(BOOL)animated
{
dispatch_block_t completionBlock = ^{
if (modalHostView.identifier) {
[[self.bridge moduleForClass:[RCTModalManager class]] modalDismissed:modalHostView.identifier];
}
};
if (_dismissalBlock) {
_dismissalBlock([modalHostView reactViewController], viewController, animated, nil);
_dismissalBlock([modalHostView reactViewController], viewController, animated, completionBlock);
} else {
[viewController.presentingViewController dismissViewControllerAnimated:animated completion:nil];
[viewController.presentingViewController dismissViewControllerAnimated:animated completion:completionBlock];
}
}
+17
View File
@@ -0,0 +1,17 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <UIKit/UIKit.h>
#import <React/RCTBridgeModule.h>
#import <React/RCTEventEmitter.h>
@interface RCTModalManager : RCTEventEmitter <RCTBridgeModule>
- (void)modalDismissed:(NSNumber *)modalID;
@end
+42
View File
@@ -0,0 +1,42 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "RCTModalManager.h"
@interface RCTModalManager ()
@property BOOL shouldEmit;
@end
@implementation RCTModalManager
RCT_EXPORT_MODULE();
- (NSArray<NSString *> *)supportedEvents
{
return @[ @"modalDismissed" ];
}
- (void)startObserving
{
_shouldEmit = YES;
}
- (void)stopObserving
{
_shouldEmit = NO;
}
- (void)modalDismissed:(NSNumber *)modalID
{
if (_shouldEmit) {
[self sendEventWithName:@"modalDismissed" body:@{ @"modalID": modalID }];
}
}
@end
-1
View File
@@ -356,7 +356,6 @@ android {
dependencies {
api("com.facebook.infer.annotation:infer-annotation:0.11.2")
api("com.facebook.yoga:proguard-annotations:1.14.1")
api("javax.inject:javax.inject:1")
api("androidx.appcompat:appcompat:1.0.2")
api("com.facebook.fresco:fresco:${FRESCO_VERSION}")
+1 -1
View File
@@ -1,4 +1,4 @@
VERSION_NAME=1000.0.0-master
VERSION_NAME=0.61.1
GROUP=com.facebook.react
POM_NAME=ReactNative
@@ -0,0 +1,22 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.facebook.proguard.annotations;
import static java.lang.annotation.RetentionPolicy.CLASS;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Add this annotation to a class, method, or field to instruct Proguard to not strip it out.
*
* <p>This is useful for methods called via reflection that could appear as unused to Proguard.
*/
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR})
@Retention(CLASS)
public @interface DoNotStrip {}
@@ -47,7 +47,7 @@ public class ReactActivityDelegate {
}
protected ReactRootView createRootView() {
return mReactDelegate.createRootView();
return new ReactRootView(getContext());
}
/**
@@ -73,7 +73,12 @@ public class ReactActivityDelegate {
String mainComponentName = getMainComponentName();
mReactDelegate =
new ReactDelegate(
getPlainActivity(), getReactNativeHost(), mainComponentName, getLaunchOptions());
getPlainActivity(), getReactNativeHost(), mainComponentName, getLaunchOptions()) {
@Override
protected ReactRootView createRootView() {
return ReactActivityDelegate.this.createRootView();
}
};
if (mMainComponentName != null) {
loadApp(mainComponentName);
}
@@ -16,7 +16,7 @@ import java.util.Map;
public class ReactNativeVersion {
public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
"major", 0,
"minor", 0,
"patch", 0,
"minor", 61,
"patch", 1,
"prerelease", null);
}
+3 -1
View File
@@ -630,7 +630,9 @@ jsi::String JSCRuntime::createStringFromUtf8(
size_t length) {
std::string tmp(reinterpret_cast<const char*>(str), length);
JSStringRef stringRef = JSStringCreateWithUTF8CString(tmp.c_str());
return createString(stringRef);
auto result = createString(stringRef);
JSStringRelease(stringRef);
return result;
}
std::string JSCRuntime::utf8(const jsi::String& str) {
+1 -1
View File
@@ -347,7 +347,7 @@ class PropNameID : public Pointer {
using Pointer::Pointer;
PropNameID(Runtime& runtime, const PropNameID& other)
: PropNameID(runtime.clonePropNameID(other.ptr_)) {}
: Pointer(runtime.clonePropNameID(other.ptr_)) {}
PropNameID(PropNameID&& other) = default;
PropNameID& operator=(PropNameID&& other) = default;
@@ -15,8 +15,8 @@ else
end
Pod::Spec.new do |spec|
spec.name = 'yoga'
spec.version = "#{version}.React"
spec.name = 'Yoga'
spec.version = '1.14.0'
spec.license = { :type => 'MIT' }
spec.homepage = 'https://yogalayout.com'
spec.documentation_url = 'https://yogalayout.com/docs/'
@@ -28,6 +28,7 @@ Pod::Spec.new do |spec|
spec.source = source
spec.module_name = 'yoga'
spec.header_dir = 'yoga'
spec.requires_arc = false
spec.compiler_flags = [
'-fno-omit-frame-pointer',
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "react-native",
"version": "1000.0.0",
"version": "0.61.1",
"bin": "./cli.js",
"description": "A framework for building native apps using React",
"license": "MIT",
@@ -97,7 +97,7 @@
"event-target-shim": "^5.0.1",
"fbjs": "^1.0.0",
"fbjs-scripts": "^1.1.0",
"hermes-engine": "^0.1.1",
"hermes-engine": "^0.2.1",
"invariant": "^2.2.4",
"jsc-android": "^245459.0.0",
"metro-babel-register": "^0.56.0",
@@ -170,4 +170,4 @@
}
}
}
}
}
+1 -1
View File
@@ -38,7 +38,7 @@ def use_react_native! (options={})
pod 'React-jsinspector', :path => "#{prefix}/ReactCommon/jsinspector"
pod 'ReactCommon/jscallinvoker', :path => "#{prefix}/ReactCommon"
pod 'ReactCommon/turbomodule/core', :path => "#{prefix}/ReactCommon"
pod 'yoga', :path => "#{prefix}/ReactCommon/yoga"
pod 'Yoga', :path => "#{prefix}/ReactCommon/yoga"
pod 'DoubleConversion', :podspec => "#{prefix}/third-party-podspecs/DoubleConversion.podspec"
pod 'glog', :podspec => "#{prefix}/third-party-podspecs/glog.podspec"
+26 -24
View File
@@ -42,34 +42,34 @@ success "Generated artifacts for Maven"
npm install
success "Killing any running packagers"
lsof -i :8081 | grep LISTEN
lsof -i :8081 | grep LISTEN | /usr/bin/awk '{print $2}' | xargs kill
# success "Killing any running packagers"
# lsof -i :8081 | grep LISTEN
# lsof -i :8081 | grep LISTEN | /usr/bin/awk '{print $2}' | xargs kill
info "Start the packager in another terminal by running 'npm start' from the root"
info "and then press any key."
info ""
read -n 1
# info "Start the packager in another terminal by running 'npm start' from the root"
# info "and then press any key."
# info ""
# read -n 1
./gradlew :RNTester:android:app:installJscDebug || error "Couldn't build RNTester Android"
# ./gradlew :RNTester:android:app:installJscDebug || error "Couldn't build RNTester Android"
info "Press any key to run RNTester in an already running Android emulator/device"
info ""
read -n 1
adb shell am start -n com.facebook.react.uiapp/.RNTesterActivity
# info "Press any key to run RNTester in an already running Android emulator/device"
# info ""
# read -n 1
# adb shell am start -n com.facebook.react.uiapp/.RNTesterActivity
info "Press any key to open the workspace in Xcode, then build and test manually."
info ""
read -n 1
open "RNTester/RNTesterPods.xcworkspace"
# info "Press any key to open the workspace in Xcode, then build and test manually."
# info ""
# read -n 1
# open "RNTester/RNTesterPods.xcworkspace"
info "When done testing RNTester app on iOS and Android press any key to continue."
info ""
read -n 1
# info "When done testing RNTester app on iOS and Android press any key to continue."
# info ""
# read -n 1
success "Killing packager"
lsof -i :8081 | grep LISTEN
lsof -i :8081 | grep LISTEN | /usr/bin/awk '{print $2}' | xargs kill
# success "Killing packager"
# lsof -i :8081 | grep LISTEN
# lsof -i :8081 | grep LISTEN | /usr/bin/awk '{print $2}' | xargs kill
npm pack
@@ -91,6 +91,8 @@ grep -E "com.facebook.react:react-native:\\+" "${project_name}/android/app/build
success "New sample project generated at /tmp/${project_name}"
cd "/tmp/${project_name}"
info "Test the following on Android:"
info " - Disable Fast Refresh. It might be enabled from last time (the setting is stored on the device)"
info " - Verify 'Reload JS' works"
@@ -98,7 +100,7 @@ info ""
info "Press any key to run the sample in Android emulator/device"
info ""
read -n 1
cd "/tmp/${project_name}" && react-native run-android
yarn react-native run-android
info "Test the following on iOS:"
info " - Disable Fast Refresh. It might be enabled from last time (the setting is stored on the device)"
@@ -111,7 +113,7 @@ info ""
info "Press any key to open the project in Xcode"
info ""
read -n 1
open "/tmp/${project_name}/ios/${project_name}.xcodeproj"
yarn react-native run-ios
cd "$repo_root"
+3 -3
View File
@@ -36,9 +36,9 @@ module.file_ext=.ios.js
munge_underscores=true
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/Libraries/react-native/react-native-implementation'
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/\1'
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/Libraries/Image/RelativeImageStub'
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation'
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
+1 -1
View File
@@ -20,7 +20,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
xcshareddata
project.xcworkspace
# Android/IntelliJ
#
-9
View File
@@ -176,15 +176,6 @@ android {
}
}
packagingOptions {
pickFirst '**/armeabi-v7a/libc++_shared.so'
pickFirst '**/x86/libc++_shared.so'
pickFirst '**/arm64-v8a/libc++_shared.so'
pickFirst '**/x86_64/libc++_shared.so'
pickFirst '**/x86/libjsc.so'
pickFirst '**/armeabi-v7a/libjsc.so'
}
}
dependencies {
+1 -1
View File
@@ -28,7 +28,7 @@ target 'HelloWorld' do
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
+1 -1
View File
@@ -10,7 +10,7 @@
},
"dependencies": {
"react": "16.8.1",
"react-native": "1000.0.0"
"react-native": "0.61.1"
},
"devDependencies": {
"@babel/core": "^7.5.0",
+4 -4
View File
@@ -3464,10 +3464,10 @@ has@^1.0.1, has@^1.0.3:
dependencies:
function-bind "^1.1.1"
hermes-engine@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/hermes-engine/-/hermes-engine-0.1.1.tgz#33d5da1a3b7289667f121dc1aca3566171e86fd8"
integrity sha512-5nPNtJg3ZiUT14SfU5KcETWrDFadn9R0hv2FCihiLZUeNHuLxaoiFy0bAMrXukKPyXG76XZ4zl5iGXr7E7Nhpw==
hermes-engine@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/hermes-engine/-/hermes-engine-0.2.1.tgz#25c0f1ff852512a92cb5c5cc47cf967e1e722ea2"
integrity sha512-eNHUQHuadDMJARpaqvlCZoK/Nitpj6oywq3vQ3wCwEsww5morX34mW5PmKWQTO7aU0ck0hgulxR+EVDlXygGxQ==
home-or-tmp@^3.0.0:
version "3.0.0"