Skip to content

Instantly share code, notes, and snippets.

View mul1sh's full-sized avatar
🎯
Focusing

Mulili Nzuki mul1sh

🎯
Focusing
View GitHub Profile
@mul1sh
mul1sh / App.js
Last active March 19, 2021 13:07
A react native component for creating a text overlay on an image like instagram
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, View } from 'react-native';
import InstagramComponent from './InstagramComponent';
export default function App() {
const text = "Hii Nase 😃😅";
const textStyle = {

Keybase proof

I hereby claim:

  • I am mul1sh on github.
  • I am mul1sh (https://keybase.io/mul1sh) on keybase.
  • I have a public key ASCV0_UW2QX4lwg8OwR9Ul3jqRDOE3WVz-khliARen3M4go

To claim this, I am signing this object:

import { StatusBar } from 'expo-status-bar';
import React, { Component } from 'react';
import { StyleSheet, Text, View, TouchableOpacity } from 'react-native';
import { TapGestureHandler, State } from 'react-native-gesture-handler';
import Animated from 'react-native-reanimated';
const { event, Value, cond, eq } = Animated;
const BOX_SIZE = 100;
@mul1sh
mul1sh / Post.ts
Last active May 11, 2020 04:36
Post Image Update
// When the app restarts or when loading the posts from firestore do this
// import the ImageUpload class like you are doing in the posts screen
// check if a post is missing a picture
if (post.picture.uri == undefined || post.picture.uri == "" ) {
// if a post is missing a picture then get the picture locally via the post id
const picture = await ImageUpload.getLocalPic(post.Id);
// @flow
import * as ImageManipulator from "expo-image-manipulator";
import Firebase from "./Firebase";
import { AsyncStorage } from 'react-native';
export type Picture = {
uri: string,
width: number,
height: number