最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Create particle effect in react-native - Stack Overflow

programmeradmin0浏览0评论

I would like to create a particle effect in the background of my react-native app.

I am looking for something like this: .js/

I can't seem to find a package that does the job.

Thanks in advance!

I would like to create a particle effect in the background of my react-native app.

I am looking for something like this: http://vincentgarreau./particles.js/

I can't seem to find a package that does the job.

Thanks in advance!

Share Improve this question asked Jun 18, 2017 at 21:36 Web WeaveWeb Weave 1602 silver badges7 bronze badges 3
  • ...You linked to a package that does exactly what you want. – Obsidian Age Commented Jun 18, 2017 at 21:39
  • 2 @ObsidianAge That package doesn't work in react-native since it needs the document – Web Weave Commented Jun 18, 2017 at 21:47
  • Did you find any solutions to this? I am looking into doing something similar. – robabby Commented Aug 29, 2017 at 17:21
Add a ment  | 

2 Answers 2

Reset to default 5

I ended up creating my own library react-native-particles

The trick for getting a good performance was to pre-calculate the particle path and then use the Animated API with useNativeDriver:true.

Use react-native webview as Background

发布评论

评论列表(0)

  1. 暂无评论