了解如何使用JavaScript世界中的有效设计模式编写跨平台的React本机代码。了解行业标准模式以及情景模式。将应用程序与这些“想法模式”分离。
主要特征
React Native中的移动开发应该以可重用的方式进行。
了解如何使用经过战斗测试的JavaScript模式构建可伸缩的应用程序。
使用80多个独立示例,自己尝试有效的技巧。
书名
React Native帮助开发者在不同的移动平台(如iOS和Android)上重用代码。
这本书将向你展示世界上有效的设计模式,并让你为大团队的专业发展做好准备。
本书将只关注与JavaScript、ECMAScript、React和React Native相关的模式。然而,您可以成功地将许多技能和技巧转移到其他语言中。我称之为“理念模式”。
本书将从React中最标准的开发模式开始,比如组件构建模式、React Native中的样式化模式,然后使用真实世界的实例将这些模式扩展到您的移动应用程序。每一章都有完整、独立的应用程序源代码,可以在手机上构建和运行。
这本书还深入探讨了建筑模式。特别是如何使MVC适应环境。您将学习Flux架构以及Redux是如何实现它的。每种方法都将介绍其优缺点。您将学习如何使用Redux thunk和Redux Saga等库处理外部数据源。
最终目标是能够为下一个移动应用程序识别给定问题的最佳解决方案。
你将学到什么
探索React Native中的设计模式
了解本地开发的最佳实践
探索React原生开发中高度使用的常见React模式
学习解耦组件并在应用程序中使用依赖项注入
探索从后端系统获取数据的最佳方法
了解造型模式以及如何实现定制手机设计
探索在大型代码库中组织应用程序代码的最佳方法
这本书是给谁的
本书的理想目标读者是那些渴望学习React原生设计模式的人,他们已经了解JavaScript的基础知识。我们可以假设目标受众已经知道如何用JavaScript编写Hello World,并且知道函数、递归函数、JavaScript类型和循环是什么。
Hands-On Design Patterns with React Native: Proven techniques and patterns for efficient native mobile development
Learn how to write cross platform React Native code by using effective design patterns in the JavaScript world. Get to know industry standard patterns as well as situational patterns. Decouple your application with these set of “Idea patterns”.
Key Features
Mobile development in React Native should be done in a reusable way.
Learn how to build scalable applications using JavaScript patterns that are battle tested.
Try effective techniques on your own using over 80 standalone examples.
Book Description
React Native helps developers reuse code across different mobile platforms like iOS and Android.
This book will show you effective design patterns in the React Native world and will make you ready for professional development in big teams.
The book will focus only on the patterns that are relevant to JavaScript, ECMAScript, React and React Native. However, you can successfully transfer a lot of the skills and techniques to other languages. I call them “Idea patterns”.
This book will start with the most standard development patterns in React like component building patterns, styling patterns in React Native and then extend these patterns to your mobile application using real world practical examples. Each chapter comes with full, separate source code of applications that you can build and run on your phone.
The book is also diving into architectural patterns. Especially how to adapt MVC to React environment. You will learn Flux architecture and how Redux is implementing it. Each approach will be presented with its pros and cons. You will learn how to work with external data sources using libraries like Redux thunk and Redux Saga.
The end goal is the ability to recognize the best solution for a given problem for your next mobile application.
What you will learn
Explore the design Patterns in React Native
Learn the best practices for React Native development
Explore common React patterns that are highly used within React Native development
Learn to decouple components and use dependency injection in your applications
Explore the best ways of fetching data from the backend systems
Learn the styling patterns and how to implement custom mobile designs
Explore the best ways to organize your application code in big codebases
Who this book is for
The ideal target audience for this book are people eager to learn React Native design patterns who already know the basics of JavaScript. We can assume that the target audience already knows how to write Hello World in JavaScript and know what are the functions, recursive functions, JavaScript types and loops.
OR