Skip to content

Commit 3047bdb

Browse files
Ron RadtkeRon Radtke
authored andcommitted
readme fixes
# fixes #166
1 parent fa0e17e commit 3047bdb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,12 +924,16 @@ ReactNativeBlobUtil.fetch('POST', 'http://example.com/upload', {'Transfer-Encodi
924924
By default, react-native-blob-util does NOT allow connection to unknown certification provider since it's dangerous. To connect a server with self-signed certification, you need to add `trusty` to `config` explicitly. This function is available for version >= `0.5.3`
925925
In addition since ``0.16.0`` you'll have to define your own trust manager for android.
926926
````java
927+
....
928+
import com.ReactNativeBlobUtil.ReactNativeBlobUtilUtils;
929+
...
930+
927931
public class MainApplication extends Application implements ReactApplication {
928932
...
929933
@Override
930934
public void onCreate() {
931935
...
932-
ReactNativeBlobUtilUtils.sharedTrustManager = final X509TrustManager x509TrustManager = new X509TrustManager() {
936+
ReactNativeBlobUtilUtils.sharedTrustManager = x509TrustManager = new X509TrustManager() {
933937
@Override
934938
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException {
935939
}

0 commit comments

Comments
 (0)