技术控

    今日:25| 主题:49195
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] Building Instagram Stories using React Native

[复制链接]
不曾言说 发表于 2016-10-11 03:37:17
146 6

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
MobX

  To be honest with you, MobX wasn’t really needed this time. I used it anyways, because it makes life (at least coding) much easier. It separates UI markup and app logic, by creating stores. By that it also reduces the amount of props that are passed down the component tree.
  Issues

  3D Animations

         
Building Instagram Stories using React Native-1 (animation,available,property,creating,because)
         Original 3D effect by Instagram       This is really frustrating in React Native.
   The animation used when swiping through stories looks like spinning a cube. In the web world, there are many tutorials (e.g. this one ) out there that show how to create a 3D cube using only the power of CSS. You just need to do a few rotations on x and y axis and a couple of translations in all three dimensions. And you also need the magic property transform-style: preserve-3d . But… this property is not available in React Native. Someone asked for this in SO and in this github issue back in June, but without any luck. On top of that, there isn’t even the translate-z property (see this issue ). My last hope was the property transform-origin . But again, it’s not available in RN, although there was a pull request for it, which never got merged. So yeah, this was quite disappointing.

Building Instagram Stories using React Native-2 (animation,available,property,creating,because)
         no 3D :sob:      TLDR; 3D Animations are impossible to do in React Native.
友荐云推荐




上一篇:Entity Framework Pitfalls: Skip/Take Position Matters
下一篇:MiniTest is not "Just Ruby", it is "Just Rails"
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

曹珍凤 发表于 2016-10-11 12:02:46
无图无真相!
回复 支持 反对

使用道具 举报

单身晚餐 发表于 2016-10-11 15:38:02
不曾言说你怎么看?
回复 支持 反对

使用道具 举报

梁倩 发表于 2016-10-15 04:26:37
如果我做了皇帝,就封你当太子!
回复 支持 反对

使用道具 举报

孔金维 发表于 2016-11-15 22:25:41
星期二的心情很不错啊
回复 支持 反对

使用道具 举报

李明东 发表于 2016-11-17 06:07:51
明明白白我的心,楼主赏我个沙发!
回复 支持 反对

使用道具 举报

576306573 发表于 2016-11-20 13:04:49
你拥有再大再多的水桶,也不如有一个水龙头。说明:”渠道很重要!
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2016 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表