Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

bringnow/react-native-tls-test

Repository files navigation

React Native TLS Test

Android has official support for TLS 1.1 and 1.2 since version 5.0 ("Marshmallow"). Android 4.1-4.4 has also support for it, but it needs to be enabled. React Native does correctly not do this (see corresponding issue).

This is a little demo app for demonstrating the issue and to test the patch for enabling the support.

The app is quite minimal and has only two buttons, each performing a minmal HTTPS request against the following two webservers:

There are two variants of the app:

  • react-native-stock: using the stock react-native (version 0.33 at the moment)
  • react-native-patched: using our react-native branch including a patch to enable TLS 1.1-1.2 on Android 4.1-4.4.

The results show the patch actually work:

Using the stock react-native on Android 4.1:

react-native-stock on Android 4.1

Using the patched react-native on Android 4.1:

react-native-patched on Android 4.1

Try for yourself

The patched react-native is not prebuilt like the stock one from npm, so you have to built it on your machine. This actually happens automatically, you just have to ensure you installed the Android NDK like described in the react-native docs.

Then you only have to enter the subdirectory of the variant you want to test (react-native-stock or react-native-patched) and run the app like every other react-native app using react-native run-android.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published