Skip to content

Instantly share code, notes, and snippets.

View paulayo93's full-sized avatar
🌜
I code, ship and test enterprise solutions

Paul Oloyede paulayo93

🌜
I code, ship and test enterprise solutions
View GitHub Profile
// MainActivity.java
@Override
protected ReactActivityDelegate createReactActivityDelegate() {
return new ReactActivityDelegate(this, getMainComponentName()) {
@Override
protected ReactRootView createRootView() {
return new RNGestureHandlerEnabledRootView(MainActivity.this);
}
@paulayo93
paulayo93 / podforceupdate.sh
Created November 17, 2022 01:55 — forked from mbinna/podforceupdate.sh
Clear CocoaPods cache, re-download and re-install all pods
#!/usr/bin/env bash
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update
import React, { useEffect } from 'react';
import { ActivityIndicator, Dimensions, Image, StyleSheet, View } from 'react-native';
import { PanGestureHandler } from 'react-native-gesture-handler';
import Animated, {
Extrapolate,
Extrapolation,
interpolate,
runOnJS,
useAnimatedGestureHandler,
useAnimatedStyle,
@paulayo93
paulayo93 / Sample.kt
Last active March 18, 2021 10:54
Jetpack Compose Starter Example
package com.example.foodrezipeapp
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.*
import androidx.compose.foundation.gestures.ScrollableDefaults
import androidx.compose.foundation.layout.*
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface