Skip to content

Commit

Permalink
Remove ContentSizeChangeEvent from core
Browse files Browse the repository at this point in the history
Summary:
This class is not referenced anywhere. It used to be part of webview, which has been removed from RN's core.

Since we still have [external users](https://github.com/expo/expo/blob/923016204c239cdad07b89626ac65eb505623d98/android/expoview/src/main/java/versioned/host/exp/exponent/modules/api/components/webview/RNCWebView.java#L133) of this class, let's deprecate it first.

Changelog: [Android][Removed] Deprecated internal ContentSizeChangeEvent

Reviewed By: NickGerleman

Differential Revision: D50325736

fbshipit-source-id: 5e1005b92764ae08bcc10607f675b3311b3e2ddb
  • Loading branch information
javache authored and facebook-github-bot committed Oct 17, 2023
1 parent 81ae532 commit 2018a82
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.uimanager.PixelUtil;

/** Event dispatched when total width or height of a view's children changes */
/**
* Event dispatched when total width or height of a view's children changes.
*
* @deprecated Please define your own event for custom components
*/
@Deprecated
public class ContentSizeChangeEvent extends Event<ContentSizeChangeEvent> {

public static final String EVENT_NAME = "topContentSizeChange";
Expand Down

0 comments on commit 2018a82

Please sign in to comment.