Skip to content

Instantly share code, notes, and snippets.

@guyca
Created June 14, 2020 10:42
Show Gist options
  • Save guyca/7aeb6a809ecc8b095ea697f8eb8bcda0 to your computer and use it in GitHub Desktop.
Save guyca/7aeb6a809ecc8b095ea697f8eb8bcda0 to your computer and use it in GitHub Desktop.
Find the from and to views which are involved in the transition
val fromView: View = ReactFindViewUtil.findView(from, fromViewNativeID)!!
ReactFindViewUtil.findView(toScreen, object : OnViewFoundListener {
override fun getNativeId(): String {
return enteringViewNativeID
}
override fun onViewFound(to: View) {
// We found the corresponding entering view - move on to the next step!
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment