Skip to content

Instantly share code, notes, and snippets.

@rajsuvariya
Created August 6, 2017 07:27
Show Gist options
  • Save rajsuvariya/e8e6f4b6307ddce639cd9acbf0d531f7 to your computer and use it in GitHub Desktop.
Save rajsuvariya/e8e6f4b6307ddce639cd9acbf0d531f7 to your computer and use it in GitHub Desktop.
@ReactMethod
public void getMpin(Callback successCallBack){
try {
successCallBack.invoke(preferenceManager.getMpin());
} catch (Exception e) {
Toast.makeText(mContext, "Unable to fetch shared preference", Toast.LENGTH_LONG).show();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment