Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,13 @@ internal constructor(
val parentView = parentViewState.view
checkNotNull(parentView) { "Unable to find parentView for tag $parentTag" }
if (parentView !is ViewGroup) {
val message =
"Unable to remove a view from a a non-ViewGroup ${parentView.javaClass.simpleName} when removing [$tag] from parent [$parentTag]"
FLog.e(TAG, message)
throw IllegalStateException(message)
ReactSoftExceptionLogger.logSoftException(
TAG,
ReactNoCrashSoftException(
"Unable to remove a view from a non-ViewGroup ${parentView.javaClass.simpleName} when removing [$tag] from parent [$parentTag]"
),
)
return
}

if (SHOW_CHANGED_VIEW_HIERARCHIES) {
Expand Down
Loading