mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove unused ReactSafeAreaViewShadowNode (#52985)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52985 This class is essentially a wrapper of LayoutShadowNode with no extra logic added. Let's remove it. Changelog: [Internal] [Changed] - Reviewed By: alanleedev Differential Revision: D79450688 fbshipit-source-id: 943e10e602cb9a5b77fca81e11d2333828b27813
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d5d21d0614
commit
36bdd7b9cb
+2
-3
@@ -31,10 +31,9 @@ internal class ReactSafeAreaViewManager :
|
||||
|
||||
override fun getName(): String = REACT_CLASS
|
||||
|
||||
override fun createShadowNodeInstance(): LayoutShadowNode = ReactSafeAreaViewShadowNode()
|
||||
override fun createShadowNodeInstance(): LayoutShadowNode = LayoutShadowNode()
|
||||
|
||||
override fun getShadowNodeClass(): Class<out LayoutShadowNode> =
|
||||
ReactSafeAreaViewShadowNode::class.java
|
||||
override fun getShadowNodeClass(): Class<out LayoutShadowNode> = LayoutShadowNode::class.java
|
||||
|
||||
override fun updateState(
|
||||
view: ReactSafeAreaView,
|
||||
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* 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.react.views.safeareaview
|
||||
|
||||
import com.facebook.react.common.annotations.internal.LegacyArchitecture
|
||||
import com.facebook.react.common.annotations.internal.LegacyArchitectureLogLevel
|
||||
import com.facebook.react.uimanager.LayoutShadowNode
|
||||
|
||||
@LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR)
|
||||
internal class ReactSafeAreaViewShadowNode : LayoutShadowNode()
|
||||
Reference in New Issue
Block a user