Skip to content

Instantly share code, notes, and snippets.

View sammahfoud's full-sized avatar

Mahfoud Sidi Ali Mebarek sammahfoud

  • Quizzito
  • Oran, Algeria
View GitHub Profile
@luiz-chagas
luiz-chagas / AsyncStorageMigration.java
Created June 9, 2020 20:09
Migrates AsyncStorage from Expo managed onto ReactNative applications (such as Expo bare)
package com.your.company;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URLEncoder;
import java.nio.channels.FileChannel;
import android.content.Context;
@ericluong
ericluong / AsyncStorageMigration.java
Created October 8, 2019 12:12
Migrating AsyncStorage after ejecting from Expo (SDK 34)
package com.company.project;
import java.io.File;
import java.net.URLEncoder;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;