Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

React Native

From Wikipedia, the free encyclopedia
Open-source mobile application framework
Some of this article'slisted sourcesmay not bereliable. Please help improve this article by looking for better, more reliable sources. Unreliable citations may be challenged and removed.(February 2019) (Learn how and when to remove this message)
React Native
DevelopersMeta and community
Initial releaseMarch 26, 2015; 10 years ago (2015-03-26)[1]
Stable release
0.82.1[2] Edit this on Wikidata / 21 October 2025; 30 days ago (21 October 2025)
Repositorygithub.com/facebook/react-native
Written inC++,Java,JavaScript,Objective-C,Kotlin
PlatformAndroid,Android TV,iOS,macOS,tvOS,Web,Windows,UWP,VR andvisionOS
TypeApplication framework
LicenseMIT License
Websitereactnative.dev

React Native is anopen-sourceUIsoftware framework developed byMeta Platforms (formerly Facebook Inc.).[3] It is used to develop applications forAndroid,[4]: §Chapter 1 [5][6]Android TV,[7]iOS,[4]: §Chapter 1 [6]macOS,[8]tvOS,[9]Web,[10]Windows[8] andUWP[11] by enabling developers to use theReact framework along with native platform capabilities.[12] It is used to develop Android and iOS applications at Facebook, Microsoft, and Shopify.[13] It is also being used to develop virtual reality applications atOculus.[14]

History

[edit]

In 2012Mark Zuckerberg commented, "The biggest mistake we made as acompany was betting too much onHTML5 as opposed to native".[15][16] UsingHTML5 forFacebook's mobile version resulted in an unstableapplication that retrieved data slowly.[17] He promisedFacebook would soon deliver a better mobile experience.

Inside Facebook, Jordan Walke developed software that generatedUI elements foriOS from a backgroundJavaScriptthread, which became the basis for theReact web framework. They decided to organize an internalhackathon to perfect thisprototype in order to be able to buildnative apps with this technology.[18]

In 2015, after months of development,Facebook released the first version for theReact JavaScript Configuration. During a technical talk,[19] Christopher Chedeau explained that Facebook was already using React Native in production for its Group App and its Ads Manager App.[20]

In October 2025, Meta announced that it would donate React, React Native, and JSX (JavaScript XML) to a new React Foundation, part of theLinux Foundation.[21]

Implementation

[edit]

The working principles of React Native are virtually identical toReact except that React Native does not manipulate theDOM via theVirtual DOM.[4]: §Chapter 2  It runs in abackground process (which interprets theJavaScript written by the developers) directly on the end-device and communicates with the native[4]: §Chapter 2  platform viaserialized data over anasynchronous andbatched bridge.[22][23]

React components wrap existing native code and interact with native APIs via React'sdeclarative UI paradigm andJavaScript.[24]TypeScript is often used overJavaScript in modern React Native applications due to its increasedtype safety.[25]

While React Native styling has a similar syntax toCSS, it does not useHTML orCSS.[4]: §Chapter 5 [26] Instead, messages from theJavaScriptthread are used to manipulate native views. Using plugins,Tailwind can also be used with React Native.

React Native is also available for bothWindows andmacOS, which is currently maintained byMicrosoft.

Hello World example

[edit]

AHello, World program in React Native looks like this:

import{AppRegistry,Text,View,Button}from'react-native';importReactfrom'react';constHelloWorldApp=()=>{const[count,setCount]=React.useState(0);constincrementCount=()=>{setCount((prevCount)=>prevCount+1);};return(<View><Text>Helloworld!</Text><Text>{count}</Text><ButtononPress={incrementCount}title="Increase Count"/></View>);};exportdefaultHelloWorldApp;AppRegistry.registerComponent('HelloWorld',()=>HelloWorldApp);

TypeScript example

[edit]

In TypeScript, a counter component looks like this:

import{Button,Text,View}from"react-native";importReactfrom"react";interfaceCounterProps{title:string;// Required propbaseNumber?:number;// Optional prop}constCounter:React.FC<CounterProps>=({title,baseNumber})=>{const[count,setCount]=React.useState<number>(baseNumber||0);constincrementCount=():void=>setCount((prevCount)=>prevCount+1);return(<View><Text>{count}</Text><ButtononPress={incrementCount}title={title}></Button></View>);};

See also

[edit]

Citations

[edit]
  1. ^"React Native: Bringing modern web techniques to mobile". 26 March 2015.
  2. ^"Release 0.82.1". 21 October 2025. Retrieved22 October 2025.
  3. ^"Chapter 1. What Is React Native?".oreilly.com. O’Reilly Media, Inc. Retrieved30 July 2020.
  4. ^abcdeEisenman 2016.
  5. ^"Android Release for React Native". 14 September 2015.
  6. ^abShankland, Stephen (March 29, 2018)."Mozilla's radical open-source move helped rewrite rules of tech".CNET. RetrievedMay 11, 2022.
  7. ^"Building For TV Devices · React Native".reactnative.dev. Retrieved2020-10-02.
  8. ^ab"React Native for Windows + macOS · Build native Windows & macOS apps with Javascript and React".microsoft.github.io. Retrieved2020-10-02.
  9. ^"React Native for Apple TV".React Native for Apple TV. Archived fromthe original on 2020-09-21. Retrieved2020-10-02.
  10. ^"React Native for Web".GitHub. Retrieved2019-11-06.
  11. ^Windows Apps Team (April 13, 2016)."React Native on the Universal Windows Platform".blogs.windows.com. Retrieved2016-11-06.
  12. ^"Out-of-Tree Platforms".reactnative.dev. Facebook, Inc. Retrieved30 July 2020.
  13. ^"React Native Showcase".react.native.dev. Retrieved2023-04-04.
  14. ^"React Native in H2 2021 · React Native".reactnative.dev. Retrieved2021-08-20.
  15. ^"Zuckerberg's Biggest Mistake? 'Betting on HTML5'". Mashable. Retrieved7 April 2018.
  16. ^Zuckerberg, Mark (2012-09-12)."Fireside Chat With Facebook Founder and CEO Mark Zuckerberg".TechCrunch (interview). Retrieved2021-08-16.
  17. ^Warren, Christina."Zuckerberg's Biggest Mistake? 'Betting on HTML5'".Mashable. Retrieved2020-10-29.
  18. ^"A short Story about React Native".jobninja.com. Archived fromthe original on 5 June 2023. Retrieved16 January 2018.
  19. ^Christopher, Chedeau."A Deep Dive into React Native".YouTube. Retrieved16 January 2018.
  20. ^"React Native: Bringing modern web techniques to mobile". 26 March 2015.
  21. ^"Meta will move React to Linux Foundation to address vendor dominance fears".The Register. 9 October 2025.
  22. ^"Bridging in React Native". 14 October 2015. Retrieved16 January 2018.
  23. ^"How we build React Native app: 7 things which save your development time. Part 2". Retrieved2019-11-06.[permanent dead link]
  24. ^"How to Create a React Native Document Scanner".sdk.docutain.com. INFOSOFT. Retrieved6 September 2024.
  25. ^"Using TypeScript".reactnative.dev. Meta Platforms, Inc. Retrieved14 July 2023.
  26. ^"React Native Style". Retrieved24 February 2021.

References

[edit]
Products
and services
Facebook
Instagram
Hardware
Other
Former
People
Founders
Board
Current
Former
Executive
officers
Current
Former
Oversight
Board
Members
Board of
Trustees
Former
members
Notable
employees
Current
Former
Open source
Mass media
Concepts
Business
Lists
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=React_Native&oldid=1315962899"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp