forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fork RCTAnimatedModule to unblock brideless mode
Summary: The Animated native module cannot be converted to a TM because it has perf regressions when used in conjunction with Paper renderer. Instead of fixing these complicated perf issues (which will disappear when Fabric ships this half), temporarily fork the native module. The new fork is converted to a TM, and only used to unblock bridgeless mode testing. Changelog:[Internal] Reviewed By: RSNara Differential Revision: D22651010 fbshipit-source-id: 912123ef38ac8c66025b7bba34a65ec6d98f330d
- Loading branch information
1 parent
509e9db
commit d1c3c2d
Showing
8 changed files
with
409 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* 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. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
|
||
'use strict'; | ||
|
||
import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; | ||
import {Spec} from './NativeAnimatedModule'; | ||
|
||
export default (TurboModuleRegistry.get<Spec>( | ||
'NativeAnimatedTurboModule', | ||
): ?Spec); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* 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 <React/RCTBridgeModule.h> | ||
#import <React/RCTEventDispatcher.h> | ||
#import <React/RCTEventEmitter.h> | ||
#import <React/RCTSurfacePresenterStub.h> | ||
#import <React/RCTUIManager.h> | ||
#import <React/RCTUIManagerObserverCoordinator.h> | ||
#import <React/RCTUIManagerUtils.h> | ||
|
||
#import "RCTValueAnimatedNode.h" | ||
|
||
// TODO T69437152 @petetheheat - Delete this fork when Fabric ships to 100%. | ||
// NOTE: This module is temporarily forked (see RCTNativeAnimatedModule). | ||
// When making any changes, be sure to apply them to the fork as well. | ||
@interface RCTNativeAnimatedTurboModule: RCTEventEmitter <RCTBridgeModule, RCTValueAnimatedNodeObserver, RCTEventDispatcherObserver, RCTUIManagerObserver, RCTSurfacePresenterObserver> | ||
|
||
@end |
Oops, something went wrong.