Skip to content

Instantly share code, notes, and snippets.

@samueljmurray
Last active August 26, 2021 08:22
Show Gist options
  • Save samueljmurray/bb0fcc0f8ffc3b38365d258a624ab787 to your computer and use it in GitHub Desktop.
Save samueljmurray/bb0fcc0f8ffc3b38365d258a624ab787 to your computer and use it in GitHub Desktop.
Certificate pinning in React Native Android - MainActivity.java methods
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
OkHttpClientProvider.setOkHttpClientFactory(new OkHttpCertPin());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment