Skip to content

Instantly share code, notes, and snippets.

import { Text, SafeAreaView, StyleSheet, TouchableOpacity, View } from 'react-native';
import { useState, useRef } from "react";
import Autocomplete from 'react-native-autocomplete-input';
import {TextInput} from 'react-native-paper';
// You can import supported modules from npm
import { Card } from 'react-native-paper';
// or any files within the Snack
import AssetExample from './components/AssetExample';
In the following snippet, I want the menu variable to have empty content at index 0, the current contents of index 0 to be at index1, and the current contents
of index 1 at index2
#include <iostream>
#include <vector>
#include <string>
// Define a struct to represent menu items
{
"version": 1,
"author": "Raspberry Pi",
"editor": "wokwi",
"parts": [
{
"type": "board-esp32-s3-devkitc-1",
"id": "esp",
"top": -86.58,
"left": 311.77,
@raspberrypisig
raspberrypisig / login.tsx
Created June 27, 2024 00:54 — forked from jdthorpe/login.tsx
expo-auth-session example
/* An example app that uses expo-auth-session to connect to Azure AD (or hopefully most providers)
Features:
- secure cache with refresh on load
- securely stored refresh token using expo-secure-store
- uses zustand for global access to the token / logout
Based on [this gist](https://gist.github.com/thedewpoint/181281f8cbec10378ecd4bb65c0ae131)
*/
import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native';
import { useFonts } from 'expo-font';
import { Stack } from 'expo-router';
import * as SplashScreen from 'expo-splash-screen';
import { useEffect } from 'react';
import 'react-native-reanimated';
import { useColorScheme } from '@/hooks/useColorScheme';
import { Button, PaperProvider, TextInput } from 'react-native-paper';
import { StyleSheet, Text, View } from 'react-native';