React Native

React Native
Developer(s)Meta and community
Initial releaseMarch 26, 2015; 9 years ago (2015-03-26)[1]
Stable release
0.76.3[2] Edit this on Wikidata / 21 November 2024; 11 days ago (21 November 2024)
Repositorygithub.com/facebook/react-native
Written inC++, Java, JavaScript, Objective-C, Kotlin
PlatformAndroid, Android TV, iOS, macOS, tvOS, Web, Windows, UWP, and VR
TypeApplication framework
LicenseMIT License
Websitereactnative.dev

React Native is an open-source UI software framework developed by Meta Platforms (formerly Facebook Inc.).[3] It is used to develop applications for Android,[4]: §Chapter 1 [5][6] Android TV,[7] iOS,[4]: §Chapter 1 [6] macOS,[8] tvOS,[9] Web,[10] Windows[8] and UWP[11] by enabling developers to use the React 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 at Oculus.[14]

History

In 2012 Mark Zuckerberg commented, "The biggest mistake we made as a company was betting too much on HTML5 as opposed to native".[15][16] Using HTML5 for Facebook's mobile version resulted in an unstable application that retrieved data slowly.[17] He promised Facebook would soon deliver a better mobile experience.

Inside Facebook, Jordan Walke found a way to generate UI elements for iOS from a background JavaScript thread, which became the basis for the React web framework. They decided to organize an internal Hackathon to perfect this prototype in order to be able to build native apps with this technology.[18]

In 2015, after months of development, Facebook released the first version for the React 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]

Implementation

The working principles of React Native are virtually identical to React except that React Native does not manipulate the DOM via the Virtual DOM.[4]: §Chapter 2  It runs in a background process (which interprets the JavaScript written by the developers) directly on the end-device and communicates with the native[4]: §Chapter 2  platform via serialized data over an asynchronous and batched bridge.[21][22]

React components wrap existing native code and interact with native APIs via React's declarative UI paradigm and JavaScript.[23] TypeScript is often used over JavaScript in modern React Native applications due to its increased type safety.[24]

While React Native styling has a similar syntax to CSS, it does not use HTML or CSS.[4]: §Chapter 5 [25] Instead, messages from the JavaScript thread are used to manipulate native views.

React Native is also available for both Windows and macOS, which is currently maintained by Microsoft.

Hello World example

A Hello, World program in React Native looks like this:

import { AppRegistry, Text, View, Button } from 'react-native';
import React from 'react';

const HelloWorldApp = () => {
  const [count, setCount] = React.useState(0);

  const incrementCount = () => {
    setCount((prevCount) => prevCount + 1);
  };

  return (
    <View>
      <Text>Hello world!</Text>
      <Text>{count}</Text>
      <Button onPress={incrementCount} title="Increase Count" />
    </View>
  );
};

export default HelloWorldApp;

AppRegistry.registerComponent('HelloWorld', () => HelloWorldApp);

See also

Citations

  1. ^ "React Native: Bringing modern web techniques to mobile". 26 March 2015.
  2. ^ "Release 0.76.3". 21 November 2024. Retrieved 26 November 2024.
  3. ^ "Chapter 1. What Is React Native?". oreilly.com. O’Reilly Media, Inc. Retrieved 30 July 2020.
  4. ^ a b c d e Eisenman 2016.
  5. ^ "Android Release for React Native". 14 September 2015.
  6. ^ a b Shankland, Stephen (March 29, 2018). "Mozilla's radical open-source move helped rewrite rules of tech". CNET. Retrieved May 11, 2022.
  7. ^ "Building For TV Devices · React Native". reactnative.dev. Retrieved 2020-10-02.
  8. ^ a b "React Native for Windows + macOS · Build native Windows & macOS apps with Javascript and React". microsoft.github.io. Retrieved 2020-10-02.
  9. ^ "React Native for Apple TV". React Native for Apple TV. Retrieved 2020-10-02.
  10. ^ "React Native for Web". GitHub. Retrieved 2019-11-06.
  11. ^ Windows Apps Team (April 13, 2016). "React Native on the Universal Windows Platform". blogs.windows.com. Retrieved 2016-11-06.
  12. ^ "Out-of-Tree Platforms". reactnative.dev. Facebook, Inc. Retrieved 30 July 2020.
  13. ^ "React Native Showcase". react.native.dev. Retrieved 2023-04-04.
  14. ^ "React Native in H2 2021 · React Native". reactnative.dev. Retrieved 2021-08-20.
  15. ^ "Zuckerberg's Biggest Mistake? 'Betting on HTML5'". Mashable. Retrieved 7 April 2018.
  16. ^ Zuckerberg, Mark (2012-09-12). "Fireside Chat With Facebook Founder and CEO Mark Zuckerberg". TechCrunch (interview). Retrieved 2021-08-16.
  17. ^ Warren, Christina. "Zuckerberg's Biggest Mistake? 'Betting on HTML5'". Mashable. Retrieved 2020-10-29.
  18. ^ "A short Story about React Native". Retrieved 16 January 2018.
  19. ^ Christopher, Chedeau. "A Deep Dive into React Native". YouTube. Retrieved 16 January 2018.
  20. ^ "React Native: Bringing modern web techniques to mobile". 26 March 2015.
  21. ^ "Bridging in React Native". 14 October 2015. Retrieved 16 January 2018.
  22. ^ "How we build React Native app: 7 things which save your development time. Part 2". Retrieved 2019-11-06.
  23. ^ "How to Create a React Native Document Scanner". sdk.docutain.com. INFOSOFT. Retrieved 6 September 2024.
  24. ^ "Using TypeScript". reactnative.dev. Meta Platforms, Inc. Retrieved 14 July 2023.
  25. ^ "React Native Style". Retrieved 24 February 2021.

References

Read other articles:

2002 compilation album by MotörheadTear Ya Down: The RaritiesCompilation album by MotörheadReleased7 May 2002Recorded1977–1980GenreHeavy metalLength1:22:02LabelMetal-IsMotörhead chronology Hammered(2002) Tear Ya Down: The Rarities(2002) Hellraiser: Best of the Epic Years(2003) Professional ratingsReview scoresSourceRatingAllmusic[1] Tear Ya Down: The Rarities is a 2-CD compilation album by the band Motörhead, released in 2002 on the Metal-Is label. Track listing Track L...

 

 

Chronologies Affiche présentant une exhibition ethnographique de Somalis au Jardin d'acclimatation à Paris en août et septembre 1890.Données clés 1887 1888 1889  1890  1891 1892 1893Décennies :1860 1870 1880  1890  1900 1910 1920Siècles :XVIIe XVIIIe  XIXe  XXe XXIeMillénaires :-Ier Ier  IIe  IIIe Chronologies géographiques Afrique Afrique du Sud, Algérie, Angola, Bénin, Botswana, Burkina Faso, Burundi, Cameroun, Cap-Vert, Ré...

 

 

2024 Indian filmNaguvina Hoogala MeleTheatrical release posterDirected byVenkat BharadwajWritten byAbhishek Iyengar (dialogues)Screenplay byVenkat BharadwajStory byVenkat BharadwajProduced byK. K. RadhamohanStarringAbhishek Das Sharanya ShettyCinematographyPramod BharateeyaEdited byChandan P.Music byLovv Pran MehtaProductioncompanySri Sathya Sai ArtsRelease date 9 February 2024 (2024-02-09) CountryIndiaLanguageKannada Naguvina Hoogala Mele (transl. On the flowers of laugh...

Синелобый амазон Научная классификация Домен:ЭукариотыЦарство:ЖивотныеПодцарство:ЭуметазоиБез ранга:Двусторонне-симметричныеБез ранга:ВторичноротыеТип:ХордовыеПодтип:ПозвоночныеИнфратип:ЧелюстноротыеНадкласс:ЧетвероногиеКлада:АмниотыКлада:ЗавропсидыКласс:Пт�...

 

 

Stasiun Palur Y13 Bangunan baru Stasiun Palur, 2019LokasiDagen, Jaten, Karanganyar, Jawa Tengah 57764IndonesiaKoordinat7°34′1″S 110°52′29″E / 7.56694°S 110.87472°E / -7.56694; 110.87472Koordinat: 7°34′1″S 110°52′29″E / 7.56694°S 110.87472°E / -7.56694; 110.87472Ketinggian+93 mOperator KAI Commuter Letakkm 256+484 lintas Surabaya Kota-Kertosono-Madiun-Solo Balapan[1] Jumlah peron3 (satu peron sisi yang cukup tinggi...

 

 

olfactory marker proteinIdentifiersSymbolOMPNCBI gene4975HGNC8136OMIM164340RefSeqNM_006189UniProtP47874Other dataLocusChr. 11 q14-q21Search forStructuresSwiss-modelDomainsInterPro Olfactory marker proteinsolution structure of olfactory marker protein from ratIdentifiersSymbolOlfactory_markPfamPF06554InterProIPR009103SCOP21jyt / SCOPe / SUPFAMAvailable protein structures:Pfam  structures / ECOD  PDBRCSB PDB; PDBe; PDBjPDBsumstructure summary In molecular biology, olfactory marker pro...

Town in Herefordshire, England This article is about the town in England. For the town in the United States, see Leominster, Massachusetts. For the former district, see Leominster (district). For the former constituency, see Leominster (UK Parliament constituency). Human settlement in EnglandLeominsterLeominster PrioryLeominsterLocation within HerefordshirePopulation11,959 (2021 Census)[1]OS grid referenceSO496591Civil parishLeominsterUnitary authorityHerefordshire...

 

 

 本表是動態列表,或許永遠不會完結。歡迎您參考可靠來源來查漏補缺。 潛伏於中華民國國軍中的中共間諜列表收錄根據公開資料來源,曾潛伏於中華民國國軍、被中國共產黨聲稱或承認,或者遭中華民國政府調查審判,為中華人民共和國和中國人民解放軍進行間諜行為的人物。以下列表以現今可查知時間為準,正確的間諜活動或洩漏機密時間可能早於或晚於以下所歸�...

 

 

British central banker (born 1959) Andrew BaileyGovernor of the Bank of EnglandIncumbentAssumed office 16 March 2020Appointed bySajid JavidPreceded byMark CarneyChief Executive of the Financial Conduct AuthorityIn office1 July 2016 – 15 March 2020Preceded byTracey McDermottSucceeded byNikhil RathiDeputy Governor of the Bank of England for Prudential RegulationIn office1 April 2013 – 1 July 2016GovernorMark CarneyPreceded byOffice establishedSucceeded bySam WoodsChief...

British author and right wing political commentator Douglas MurrayMurray in 2019BornDouglas Kear Murray (1979-07-16) 16 July 1979 (age 44)London, EnglandOccupationAuthorpolitical commentatorEducationSt Benedict's School Eton College (6th form)Alma materMagdalen College, OxfordPeriod2000–presentSubjectPoliticsculturehistoryNotable worksNeoconservatism: Why We Need It (2006)The Strange Death of Europe: Immigration, Identity, Islam (2017)The Madness of Crowds: Gender, Race and Identi...

 

 

Aksara NāgarīPrasasti di atas pelat tembaga yang ditulis dalam aksara Nāgarī, 1035 MJenis aksara Abugida Bahasa Bahasa Sanskerta Bahasa Prakerta Bahasa Jawa Kuno Bahasa Sunda Kuno PeriodeAbad pertama Masehi dan berkembang abad ke-7 Masehi CEAksara terkaitSilsilahAbjad Proto-Sinai[a]Abjad Fenisia[a]Abjad Aram[a]Aksara BrahmiAksara GuptaAksara NāgarīAksara turunan Aksara Dewanagari Aksara Kaithi Aksara Sylheti Nagari Aksara Nandinagari Aksara kerabat Aksara Śāradā Aksara Siddhaṃ [a] ...

 

 

Meromorphic function For Barnes's gamma function, see multiple gamma function. This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: Polygamma function – news · newspapers · books · scholar · JSTOR (August 2021) Graphs of the polygamma functions ψ, ψ(1), ψ(2) and ψ(3) of real arguments Plot of polyga...

Местный советМазрааивр. מזרעה‎араб. المزرعة‎ 32°58′59″ с. ш. 35°05′51″ в. д.HGЯO Страна  Израиль Округ Северный История и география Площадь 0,478 км² Высота над уровнем моря 16 м Часовой пояс UTC+2:00, летом UTC+3:00 Население Население 3 929 человека (2020) al-mazraa.com Пока�...

 

 

ГородМюльхайм-ан-дер-Рурнем. Mülheim an der Ruhr Замок Бройх Флаг Герб 51°25′39″ с. ш. 6°52′57″ в. д.HGЯO Страна  Германия[3] Статус внерайонный город Земля Северный Рейн — Вестфалия Административный округ Дюссельдорф Внутреннее деление 9 городских районов Обер-�...

 

 

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: 20th Field Artillery Regiment United States – news · newspapers · books · scholar · JSTOR (December 2012) (Learn how and when to remove this message)20th Field Artillery RegimentActive1916Country United States of AmericaBranch United States ArmyT...

العلاقات السنغالية الشمال مقدونية السنغال شمال مقدونيا   السنغال   شمال مقدونيا تعديل مصدري - تعديل   العلاقات السنغالية الشمال مقدونية هي العلاقات الثنائية التي تجمع بين السنغال وشمال مقدونيا.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة...

 

 

Una abadía imperial (en alemán: Reichsabteien, también Reichsklöster y Reichsstifte) fue un establecimiento religioso fundado en territorio del Sacro Imperio Romano Germánico que en algún periodo de su existencia tuvo el estatus de «inmediatez imperial» (Reichsunmittelbarkeit), es decir, que respondía directamente ante el Emperador del Sacro Imperio Romano Germánico, siendo por tanto pequeños territorios soberanos independientes de otros señoríos. Ese estatus suponía numerosas v...

 

 

Poetic academy An initial from the first page of the Leys d'amor The Consistori del Gay Saber (Occitan: [kunsisˈtɔɾi ðel ˈɣaj saˈβe]; Consistory of the Gay Science)[a] was a poetic academy founded at Toulouse in 1323 to revive and perpetuate the lyric poetry of the troubadours. Also known as the Acadèmia dels Jòcs Florals or Académie des Jeux Floraux (Academy of the Floral Games), it is the most ancient literary institution of the Western world. It was founded in 13...

田島道治 田島 道治(たじま みちじ、1885年(明治18年)7月2日 - 1968年(昭和43年)12月2日[1])は、日本の実業家、銀行家。 戦後、第2代宮内府長官、初代宮内庁長官(宮内府長官時代を含め、在任 1948年(昭和23年) - 1953年(昭和28年)[2])を歴任し、GHQ(連合国軍最高司令官総司令部)の占領下にあって宮中・皇室改革に尽力した。 生涯 生い立ち 1885年(明�...

 

 

Australian basketball player Matt HodgsonHodgson with the Brisbane Bullets in 2019Personal informationBorn (1991-08-02) 2 August 1991 (age 33)Ipswich, QueenslandNationalityAustralianListed height211 cm (6 ft 11 in)Listed weight115 kg (254 lb)Career informationHigh schoolIpswich Grammar(Ipswich, Queensland)College Southern Utah (2009–2011) Saint Mary's (2012–2014) NBA draft2014: undraftedPlaying career2009–presentPositionCentreCareer history2009Australian In...