'IgnoreSSLError not working in ReactNative

I am very new to ReactNative. I have developed a webview app for both android and ios. The Url for UAT server doesnt have certificate, this causes the webview not load. I tried in Android Studio, with the method ONRECEIVEDSSLERROR() i was able to ignore SSL issue but not able to do in react native pls help. I have attached code snippet below:

import React, { Component } from 'react';
import { WebView } from "react-native-webview";

export default function App({ navigation }) {
  return (
        <WebView
          source= {{ uri: 'myurl' }}
          ignoreSslError={true}
          javaScriptEnabled={true}
          setSupportMultipleWindows={false}
        />
      )
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source