Skip to content

Instantly share code, notes, and snippets.

View realabbas's full-sized avatar
💭
Whenever I get bore, I call the API's 🤠

Ali Abbas realabbas

💭
Whenever I get bore, I call the API's 🤠
View GitHub Profile
@realabbas
realabbas / ExportWallet.ts
Last active September 6, 2022 20:28
Import and Export Wallet Feature implemented in Aries Bifold App (SSI Ecosystem powered by Hyperledger Aries and Aries Javascript Framework )
import { useAgent } from '@aries-framework/react-hooks'
import React, { useState } from 'react'
import { useTranslation } from 'react-i18next'
import { ActivityIndicator, Clipboard, StyleSheet, Text, TouchableOpacity, View } from 'react-native'
import { DirectoryPickerResponse, DocumentPickerResponse } from 'react-native-document-picker'
import { SafeAreaView } from 'react-native-safe-area-context'
import Toast from 'react-native-toast-message'
import Button, { ButtonType } from '../components/buttons/Button'
import { ToastType } from '../components/toast/BaseToast'
import { useStore } from '../contexts/store'
@realabbas
realabbas / React Native Clear Cache
Created October 24, 2019 12:33 — forked from jarretmoses/React Native Clear Cache
Clearing the Cache of your React Native Project
RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache
Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache
Verifying my Blockstack ID is secured with the address 1FjHQDTPYL2FMoEZPTSAsRx5wbjUkwFiD6 https://explorer.blockstack.org/address/1FjHQDTPYL2FMoEZPTSAsRx5wbjUkwFiD6
@realabbas
realabbas / axios.js
Created February 9, 2019 13:45
How to use axios in React
import axios from 'axios';
const request = () =>{
axios.get('yourendpoint/query')
.then(function (response){
console.log(response);
})
.catch(function (error){
console.log(error);
});