Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
330 views
in Technique[技术] by (71.8m points)

reactjs - Redux是否与React和React本机相同?(Is Redux the same for React and React native?)

I am currently studying RN by myself, without prior knowledge in React.

(我目前正在独自学习RN,而没有React的先验知识。)

A lot of things seem to exist in both such as Redux and hooks.

(Redux和hooks似乎都存在很多东西。)

Many of the resources I find refer to React in the title (eg "Redux Crash Course With React").

(我发现许多资源都参考了标题中的React(例如“使用React的Redux速成课程”)。)

My question is: where does the line cross between React and React Native?

(我的问题是:React和React Native之间的界线在哪里?)

Would I be fine studyig form these resources that refer to React, or would that just confuse me?

(我会从涉及React的这些资源中很好地学习吗,还是会让我感到困惑?)

I'm trying to understand a go to approach to understand which resource I'd be fine with and which would be irrelevant.

(我正在尝试了解一种方法,以了解可以使用的资源以及与之无关的资源。)

  ask by Tsabary translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

React Native contains React library to use it as front-end library.

(React Native包含React库,以将其用作前端库。)

Most of usages of React are the same for React-Native.

(React的大多数用法与React-Native相同。)

And it is same for Redux too.

(Redux也是如此。)

React-Native must have other libraries to build applications that can run on both of Android and iOS.

(React-Native必须具有其他库来构建可以在Android和iOS上运行的应用程序。)

Also it has middleware libraries that allow us to use most of native libraries' functionalities.

(它还具有中间件库,使我们能够使用大多数本机库的功能。)

As an example you can check Alert directory out.

(例如,您可以检查警报目录 。)

It is used for to show native Android alert dialogs.

(它用于显示本地Android警报对话框。)

Good luck..

(祝好运..)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...