--- title: React Native sidebar_label: React Native description: Build data-intensive mobile apps with React Native. Seamlessly integrate spreadsheets into your app using SheetJS. Securely process and generate Excel files in the field. pagination_prev: demos/static/index pagination_next: demos/desktop/index sidebar_position: 1 sidebar_custom_props: summary: React + Native Rendering --- # Sheets on the Go with React Native import current from '/version.js'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import CodeBlock from '@theme/CodeBlock'; [React Native](https://reactnative.dev/) is a mobile app framework. It builds iOS and Android apps that use JavaScript for describing layouts and events. [SheetJS](https://sheetjs.com) is a JavaScript library for reading and writing data from spreadsheets. This demo uses React Native and SheetJS to process and generate spreadsheets. We'll explore how to load SheetJS in a React Native app in a few ways: - ["Fetching Remote Data"](#fetching-remote-data) uses the built-in `fetch` to download and parse remote workbook files. - ["Local Files"](#local-files) uses native libraries to read and write files on the device. The "Local Files" example creates an app that looks like the screenshots below:
iOS | Android |
---|---|
![iOS screenshot](pathname:///mobile/rnios3.png) | ![Android screenshot](pathname:///mobile/rnand3.png) |
Spreadsheet | Array of Arrays |
---|---|
![`pres.xlsx` data](pathname:///pres.png) | ```js [ ["Name", "Index"], ["Bill Clinton", 42], ["GeorgeW Bush", 43], ["Barack Obama", 44], ["Donald Trump", 45], ["Joseph Biden", 46] ] ``` |
Before | After |
---|---|
![before screenshot](pathname:///reactnative/andfetch1.png) | ![after screenshot](pathname:///reactnative/andfetch2.png) |
Before | After |
---|---|
![before screenshot](pathname:///reactnative/iosfetch1.png) | ![after screenshot](pathname:///reactnative/iosfetch2.png) |