Skip to content

Instantly share code, notes, and snippets.

Creating an Expo app in 2023

12th July, 2023. I'm going to try creating an iOS app called Paranovel, using Expo. My environment for mobile app dev (Xcode, Ruby, etc.) should be in reasonably good shape already as I frequently develop with React Native and NativeScript.

Creating the app

Go to https://docs.expo.dev, and see the Quick Start: npx create-expo-app paranovel

This runs with no problem, then I get this macOS system popup:

@rokkoo
rokkoo / sticky text input
Created May 10, 2023 08:50
Reanimated sticky text input on react native
import React, { useCallback, useState } from 'react';
import {
Pressable,
StyleSheet,
TextInput,
useWindowDimensions,
} from 'react-native';
import { useReanimatedKeyboardAnimation } from 'react-native-keyboard-controller';
import Animated, {
interpolate,
@rokkoo
rokkoo / Gallery.tsx
Created April 25, 2023 09:17 — forked from terrysahaidak/Gallery.tsx
Control scroll
@rokkoo
rokkoo / gist:ed46c8ed376f714153106d82f2fbe280
Created September 15, 2019 18:43
Remove git folder windows
Open CMD promp
Go proyect folder exp (d:)
Paste this attrib -s -h -r . /s /d
Then paste this del /F /S /Q /A .git
Then paste this rmdir / S / Q .git or rmdir .git
And done!
@rokkoo
rokkoo / gist:cd439f8b8d8ef24d1480271f771ea82c
Created September 9, 2019 09:05
Hyper console customization using powershell - windows
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
// default font size in pixels for all tabs
@rokkoo
rokkoo / gist:644aa6c24e517e636387df0a5a84006d
Last active February 28, 2019 09:31
Correr RStudio en Docker
docker run --rm -e USER=<user> -e PASSWORD=<password> -p 8787:8787 rocker/verse # Cambia <user> por el usuario a usar en RStudio <password> pon una contraseña a tu elección.
Parametros
-p Sirver para indicarle el puerto en el que se va a usar RStudio en el navegador.
--rm Se segura que cuando cerremos el container el container sera borrado de inmediato.
//Si ejecutamos comando y no tenemos instalada la imagen, docker se engarcara de descargarla del docker hub.
Para abrir en el navegador RStudio tenedremos que poner la ip de nuestra pagina con el puerto que le hemos indicado.
@rokkoo
rokkoo / Start node project
Created February 18, 2019 18:16
How to start correctly node server
$ npx license mit > LICENSE
$ npx gitignore node
$ npx covgen YOUR_EMAIL_ADDRESS
$ npm init -y
# These four commands do everything that I was doing manually and more, setting up a project for success right from the start.
npx license mit uses the license package to download a license of choice, in this case the MIT license
npx gitignore node uses the gitignore package to automatically download the relevant .gitignore file from GitHub’s repo
npx covgen uses the covgen package to generate the Contributor Covenant and give your project a code of conduct that will be welcoming to all contributors