Patches to get https://framagit.org/StCyr/deck-react-native building
- Add Simulator profiles
- Remove
eas-cliandexpo-clidependencies - Reinstall dependencies
| // https://stackblitz.com/edit/react-aria-emoji-picker?file=src%2FEmojiPicker.tsx | |
| import { | |
| Autocomplete, | |
| Button, | |
| GridLayout, | |
| ListBox, | |
| ListBoxItem, | |
| Select, | |
| SelectValue, |
| <!-- Need to specify the `installLocation`. Can do this with a config plugin --> | |
| <!-- See `app.json` and `withAndroidManifestAttributes.js` below --> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.example.myapp" | |
| android:installLocation="auto"> | |
| ... | |
| </manifest> |
| { | |
| "cli": { | |
| "version": ">= 0.52.0" | |
| }, | |
| "build": { | |
| "development": { | |
| "developmentClient": true, | |
| "distribution": "internal" | |
| }, | |
| "sim-dev": { |
Patches to get https://framagit.org/StCyr/deck-react-native building
eas-cli and expo-cli dependencies| /* | |
| * Convert `app.json` to `app.config.js` | |
| * Install `@expo/config-plugins` as a devDependency | |
| * Copy the `withAndroidApplicationAttributes` config plugin and related `addAttributesToApplication` function to `app.config.js` | |
| * Add a `plugins` section to reference the config plugin and specify the attribute to add | |
| * Build with `eas build -p android ...` | |
| */ | |
| import { AndroidConfig, withAndroidManifest } from "@expo/config-plugins"; | |
| function addAttributesToApplication(androidManifest, attributes) { |
/tmp$ git clone https://github.com/wodin/expo-zip-example
Cloning into 'expo-zip-example'...
remote: Enumerating objects: 38, done.
remote: Counting objects: 100% (38/38), done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 38 (delta 15), reused 38 (delta 15), pack-reused 0
Receiving objects: 100% (38/38), 170.29 KiB | 369.00 KiB/s, done.
Resolving deltas: 100% (15/15), done.
/tmp$ cd expo-zip-example
| #!/usr/bin/env python3 | |
| import sys | |
| import csv | |
| import json | |
| from collections import OrderedDict | |
| # !type | |
| # !group_id | |
| # !group_name |
| import React, { useEffect, useState } from "react"; | |
| import { View } from "react-native"; | |
| import { | |
| Button, | |
| FAB, | |
| Provider as PaperProvider, | |
| Text | |
| } from "react-native-paper"; | |
| import { Updates } from "expo"; | |
| import { SafeAreaProvider, useSafeArea } from "react-native-safe-area-context"; |
| # Ignore isMuted, volume, positionMillis, rate, etc. for now | |
| Audio Player* | |
| Unloaded* | |
| # Call Audio.Sound.createAsync() | |
| # Should start getting status updates | |
| load -> Loading | |
| Loading | |
| # e.g. navigate away, need to clean up |
| Snapshot | |
| logout -> Login Page | |
| summary -> Summary | |
| Reports* | |
| students -> Students | |
| standards -> Standards | |
| Summary* |