mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-08 09:12:05 +08:00
@build-break revert of D2217731
Differential Revision: D2702368 fb-gh-sync-id: 64f53168610c5bf5f3dc22cd7e4dd6b4bb620b4c
This commit is contained in:
committed by
facebook-github-bot-7
parent
593a45e319
commit
e8e7a2db57
@@ -383,45 +383,12 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
|
||||
mUIImplementation.showPopupMenu(reactTag, items, error, success);
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void setMainScrollViewTag(int reactTag) {
|
||||
// TODO(6588266): Implement if required
|
||||
}
|
||||
|
||||
/**
|
||||
* LayoutAnimation API on Android is currently experimental. Therefore, it needs to be enabled
|
||||
* explicitly in order to avoid regression in existing application written for iOS using this API.
|
||||
*
|
||||
* Warning : This method will be removed in future version of React Native, and layout animation
|
||||
* will be enabled by default, so always check for its existence before invoking it.
|
||||
*
|
||||
* TODO(9139831) : remove this method once layout animation is fully stable.
|
||||
*
|
||||
* @param enabled whether layout animation is enabled or not
|
||||
*/
|
||||
@ReactMethod
|
||||
public void setLayoutAnimationEnabledExperimental(boolean enabled) {
|
||||
mOperationsQueue.enqueueSetLayoutAnimationEnabled(enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure an animation to be used for the native layout changes, and native views
|
||||
* creation. The animation will only apply during the current batch operations.
|
||||
*
|
||||
* TODO(7728153) : animating view deletion is currently not supported.
|
||||
* TODO(7613721) : callbacks are not supported, this feature will likely be killed.
|
||||
*
|
||||
* @param config the configuration of the animation for view addition/removal/update.
|
||||
* @param success will be called when the animation completes, or when the animation get
|
||||
* interrupted. In this case, callback parameter will be false.
|
||||
* @param error will be called if there was an error processing the animation
|
||||
*/
|
||||
@ReactMethod
|
||||
public void configureNextLayoutAnimation(
|
||||
ReadableMap config,
|
||||
Callback success,
|
||||
Callback error) {
|
||||
mOperationsQueue.enqueueConfigureLayoutAnimation(config, success, error);
|
||||
Callback successCallback,
|
||||
Callback errorCallback) {
|
||||
// TODO(6588266): Implement if required
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user