Skip to content

Latest commit

 

History

History
84 lines (63 loc) · 2.48 KB

File metadata and controls

84 lines (63 loc) · 2.48 KB

BlackBerry-Dynamics-for-React-Native-WebView

Secures <WebView /> UI component provided by [email protected] and allows to access to private/corporate network resources through BlackBerry Dynamics SDK. The JavaScript API remains unchanged.

NOTE: on Android GDWebView library is used under the hood.

Supportability

Platforms Supported

  • iOS
  • Android

React Native

  • 0.63.x

Supported on iOS and Android

  • HTTP redirection
  • Page resource and content loading
  • MTD Safe browsing
  • DLP (secure cut/copy/paste) within WebView

Supported on iOS and not supported on Android

  • File upload
  • Browsing history - GoBack, GoForward, Reload and StopLoading API
  • AutoZSO

Not supported on iOS and Android

  • HTTP authentication (Basic, Digest, NTLM, Kerberos, Client Cert)
  • File download
  • URL schemes mailto:, geo:, tel:
  • Secured cookies storage
  • Secured HTTP cache
  • WebSocket
  • WebWorker
  • SSO

Preconditions

BlackBerry-Dynamics-for-React-Native-WebView is dependent on BlackBerry-Dynamics-for-React-Native-Base module.

Please install BlackBerry-Dynamics-for-React-Native-Base first.

Installation

$ yarn add <path>/ui-components/BlackBerry-Dynamics-for-React-Native-WebView
iOS
$ cd ios
$ pod install
$ cd ..
$ react-native run-ios
Android
$ react-native run-android

Usage

Import the WebView component from BlackBerry-Dynamics-for-React-Native-WebView and use it like so:

import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { WebView } from 'BlackBerry-Dynamics-for-React-Native-WebView';

// ...
class MyWebComponent extends Component {
  render() {
    return <WebView source={{ uri: 'https://reactnative.dev/' }} />;
  }
}

For more, read the API Reference and Guide of original WebView component.

Uninstallation

$ cd <appFolder>
$ yarn remove BlackBerry-Dynamics-for-React-Native-WebView
iOS
$ cd ios
$ pod install
$ cd ..

Known issues

  • [Android] Response with error message is not shown for unsuccessful request
  • [Android] Unable to copy/cut/paste text from one Dynacmis app into other Dynamics app when DPL is on