diff --git a/docz/docs/03-demos/17-mobile/07-lynx.md b/docz/docs/03-demos/17-mobile/07-lynx.md new file mode 100644 index 0000000..e33b0e3 --- /dev/null +++ b/docz/docs/03-demos/17-mobile/07-lynx.md @@ -0,0 +1,388 @@ +--- +title: Sheets at Native Speed with Lynx +sidebar_label: Lynx +description: Build data-intensive mobile apps with Lynx. 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: 7 +sidebar_custom_props: + summary: Lynx + Native Rendering +--- + +import current from '/version.js'; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; +import CodeBlock from '@theme/CodeBlock'; + +export const r = {style: {color:"red"}}; +export const g = {style: {color:"green"}}; +export const y = {style: {color:"gold"}}; +export const gr = {style: {color:"gray"}}; + +[Lynx](https://lynxjs.org/) is a modern cross-platform framework. It builds iOS, Android +and Web apps that use JavaScript for describing layouts and events. + +[SheetJS](https://sheetjs.com) is a JavaScript library for reading and writing +data from spreadsheets. + +:::caution Lynx support is considered experimental. + +Lynx is a great, fast, open-source alternative to React Native. Any issues should be reported to the Lynx project for +further diagnosis. + +::: + +This demo uses [ReactLynx](https://lynxjs.org/react) and SheetJS to process and generate +spreadsheets. We'll explore how to load SheetJS in ReactLynx app in a few ways: + +- ["Fetching Remote Data"](#fetching-remote-data) uses the built-in `fetch` to download +and parse remote workbook files. + +The "Fetching Remote Data" example creates an app that looks like the screenshots below: + +
iOS | +Android | +
---|---|
+ + + + | + + + + |
Spreadsheet | Array of Arrays |
---|---|
+ + + + | + +```js +[ + ["Name", "Index"], + ["Bill Clinton", 42], + ["GeorgeW Bush", 43], + ["Barack Obama", 44], + ["Donald Trump", 45], + ["Joseph Biden", 46] +] +``` + + |
Before | +After | +
---|---|
+ + + + | + + + + |
Before | +After | +
---|---|
+ + + + | + + + + |