mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Back out "fix Pressable when transform style is animated" (#48732)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48732 Original commit changeset: e2ac108b064a Original Phabricator Diff: D68154908 changelog: [internal] please read summary in D68268701 Reviewed By: yungsters Differential Revision: D68268700 fbshipit-source-id: ba908e0be5bd171d818efe1bcbb3a97279bafafe
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b059050c87
commit
67fc85615a
@@ -9,7 +9,6 @@
|
||||
*/
|
||||
|
||||
import type {EventSubscription} from '../../vendor/emitter/EventEmitter';
|
||||
import type {PlatformConfig} from '../AnimatedPlatformConfig';
|
||||
import type Animation, {EndCallback} from '../animations/Animation';
|
||||
import type {InterpolationConfigType} from './AnimatedInterpolation';
|
||||
import type AnimatedNode from './AnimatedNode';
|
||||
@@ -132,11 +131,6 @@ export default class AnimatedValue extends AnimatedWithChildren {
|
||||
return this._value + this._offset;
|
||||
}
|
||||
|
||||
__makeNative(platformConfig: ?PlatformConfig): void {
|
||||
super.__makeNative(platformConfig);
|
||||
this.#ensureUpdateSubscriptionExists();
|
||||
}
|
||||
|
||||
#ensureUpdateSubscriptionExists(): void {
|
||||
if (this.#updateSubscription != null) {
|
||||
return;
|
||||
|
||||
@@ -1109,7 +1109,6 @@ declare export default class AnimatedValue extends AnimatedWithChildren {
|
||||
__attach(): void;
|
||||
__detach(): void;
|
||||
__getValue(): number;
|
||||
__makeNative(platformConfig: ?PlatformConfig): void;
|
||||
setValue(value: number): void;
|
||||
setOffset(offset: number): void;
|
||||
flattenOffset(): void;
|
||||
|
||||
Reference in New Issue
Block a user