Skip to content

Instantly share code, notes, and snippets.

View myckhel's full-sized avatar
🎯
Focusing

Michael Ishola myckhel

🎯
Focusing
View GitHub Profile
@myckhel
myckhel / Message.js
Created March 25, 2021 14:43
react native gifted chat swipe to reply
import React, {useRef, useMemo, useState, useCallback} from 'react';
import {Vibration, View, StyleSheet} from 'react-native';
import {Button, Text, Row} from '../../theme';
import {Send as SendIcon} from '../../Icons';
import {useMessage, useConversationEventType} from '../../../redux/msg/hooks';
import Animated, {
useAnimatedStyle,
useSharedValue,
} from 'react-native-reanimated';
import {SwipeRow} from 'react-native-swipe-list-view';
@myckhel
myckhel / RouteServiceProvider.php
Last active April 30, 2021 09:24
Safely change laravel root domain from `/` to `/public` folder after deployment in production.
<?php
...
use Illuminate\Support\Facades\Http;
use Route;
use Illuminate\Http\Request;
class RouteServiceProvider extends ServiceProvider
{
...
public function boot()