React-native-wechat: 引入这个微信库后 导致Animated 不能正常工作

Created on 19 Aug 2019  ·  11Comments  ·  Source: yorkie/react-native-wechat

react-native-wechat ^1.9.10 版本导入后 react-native的 Animated动画没有了缓动效果,希望官方帮忙确认一下是不是这个微信库在影响Animated

Most helpful comment

用git地址install,npm上的插件未更新

install了最新的git的代码,但是IOS上animated失效的解决了,但是Android跑不起来,报错

Note: Recompile with -Xlint:unchecked for details.
/node_modules/react-native-wechat/android/src/main/java/com/theweflex/react/WeChatModule.java:255: error: unreported exception Exception; must be caught or declared to be thrown
                    throw new Exception("Empty bitmap");
                    ^
1 error

All 11 comments

用git地址install,npm上的插件未更新

用git地址install,npm上的插件未更新

install了最新的git的代码,但是IOS上animated失效的解决了,但是Android跑不起来,报错

Note: Recompile with -Xlint:unchecked for details.
/node_modules/react-native-wechat/android/src/main/java/com/theweflex/react/WeChatModule.java:255: error: unreported exception Exception; must be caught or declared to be thrown
                    throw new Exception("Empty bitmap");
                    ^
1 error

找到对应java文件,把thorw这行代码注释就行

npm 可以更新一下吗 npm git地址一直不成功 @yiky84119

@M1seRy

@Hetaoweb 已经更新了 npm 最新版本 1.9.11 试一试。

@M1seRy 谢谢大佬

@M1seRy 最新版的仍然未解决pod install 的问题,rn 0.60.5

@KingAmo 可以贴一下 pod install 的错误日志吗?

@yorkie 提了一个 PR https://github.com/yorkie/react-native-wechat/pull/515 大佬有空看看~

Was this page helpful?
0 / 5 - 0 ratings