RootViewUtil.smali
.class public Lcom/facebook/react/uimanager/RootViewUtil;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getRootView(Landroid/view/View;)Lcom/facebook/react/uimanager/RootView;
.registers 2
.line 1
:goto_0
instance-of v0, p0, Lcom/facebook/react/uimanager/RootView;
if-eqz v0, :cond_7
.line 2
check-cast p0, Lcom/facebook/react/uimanager/RootView;
return-object p0
.line 3
:cond_7
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object p0
if-nez p0, :cond_f
const/4 p0, 0x0
return-object p0
.line 4
:cond_f
instance-of v0, p0, Landroid/view/View;
invoke-static {v0}, Lcom/facebook/infer/annotation/Assertions;->assertCondition(Z)V
.line 5
check-cast p0, Landroid/view/View;
goto :goto_0
.end method