gpt4 book ai didi

javascript - react native : How to do a "shared element/zoom" transition using navigator?

转载 作者:可可西里 更新时间:2023-11-01 02:26:02 34 4
gpt4 key购买 nike

是否可以像this 那样进行“共享元素/缩放”转换?在使用导航器 react native ?

特别适用于图片库/模式之类的东西。

https://github.com/codepath/android_guides/wiki/Shared-Element-Activity-Transition

最佳答案

“目前 React 不支持在组件层次结构的不同部分重用原生 View ,这使得在纯 JS 中实现共享元素转换变得困难。”

查看以下链接: https://github.com/brentvatne/hard-react-native-problems/issues/11

此外,它(共享元素)可能会在下一版本中作为 Navigator 的一部分推出。查看以下线程: https://twitter.com/intelligibabble/status/764162422831652865

编辑:airbnb 推出了带有共享元素转换的原生导航来尝试。它还不是官方的。但可以试试.. http://airbnb.io/native-navigation/docs/guides/shared-element-transitions.html

更新:值得结帐https://wix.github.io/react-native-navigation用于共享元素实现。

关于javascript - react native : How to do a "shared element/zoom" transition using navigator?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36770035/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com