Git Product home page Git Product logo

react-native-blog-examples's Introduction

react-native-blog-examples

Sample projects for my react native blog

use "npm install" to install dependencies, recommended IDE: WebStorm or VSCode

Overview

RN优点是跨平台、JS代码和样式开发UI迅速、HotReload、热修复,缺点在于性能、开发集成时配置略麻烦,带来的问题也略多,但它值得一学。对于功能复杂型应用还是应该以原生为主RN为辅。

虽然RN的热度已经过去了,但是它依然是非常有价值的,比起谷歌的Flutter和阿里的Weex来说,RN更加成熟、社区资源更加丰富,RN在实际开发中有非常广泛的实践,值得学习使用。其实这些跨平台开发框架有很多异曲同工之妙,学会一门,再了解其它的,短时间内是很容易上手的,对原生开发童鞋来说尤其如此。

本仓库是对React Native系列开发知识的经验总结,目的是使用React Native实现原生开发常见的应用场景。Example由基础常用控件ListView,FlatList等开始逐步深入,涵盖控件使用、页面导航跳转、视频播放器、iconfont、RN与原生的交互等内容,持续更新中(工作原因不定期更新),感兴趣的可以关注下。

Demo对应的文章及说明

  1. Chapter1 - React Native——ListView的使用详解
  2. Chapter2 - ReactNative——使用FlatList实现豆瓣电影列表
  3. Chapter3 - React Native——使用SectionList改造电影列表
  4. Chapter4 - React Native——自定义下拉刷新上拉加载的列表
  5. Chapter5 - react-navigation使用介绍及UI组件外实现统一跳转
  6. Chapter6 - TextInput组件的使用示例和最基本的表单校验
  7. Chapter7 - ReactNative——react-native-video实现视频全屏播放
  8. Chapter8 - ReactNative干货分享——视频播放器App
  9. Chapter9 - ReactNative干货分享——自定义iconfont图标的使用
  10. Chapter10 - RN与原生交互(一)——基本页面跳转
  11. Chapter10/DataTransfer - RN与原生交互(二)——数据传递
  12. Chapter11 - RN调用原生端SQLite数据库
  13. Chapter12 - React Native二维码的生成和扫描
  14. Chapter13 - 极光推送的集成和使用
  15. Chapter14 - 使用react-native-wechat实现微信登录、分享和支付
  16. Chapter15 - RN中的动画Animated使用示例
  17. Chapter16 - Redux的集成和使用,实现简单登录和电影列表加载
  18. Chapter17 - 在RN中实现原生扫瞄二维码功能
  19. Chapter19 - React Native性能优化总结

视频播放器功能

  • 支持本地和远程视频地址
  • 支持播放和暂停
  • 支持横竖屏切换
  • 横屏显示视频标题
  • 静音功能
  • 支持视频选集切换
  • 横屏清晰度切换
  • 横屏展示分享
  • 调整音量
  • 调整播放速率,支持多倍速播放
  • 适配iPhone X

TODO

  • 视频截屏
  • 横屏锁定旋转
  • Refine code

视频播放器效果图

image

image

iconfont

自定义iconfont在React Native中的使用,看这一篇文章就足够了...

image

Animated

项目演示了RN中动画的使用,RN中复杂动画使用Animated来实现。此处列举几个实现的动画效果:

image image image image

react-native-blog-examples's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.