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.
- iOS
- Android
- 0.63.x
- HTTP redirection
- Page resource and content loading
- MTD Safe browsing
- DLP (secure cut/copy/paste) within WebView
- File upload
- Browsing history -
GoBack
,GoForward
,Reload
andStopLoading
API - AutoZSO
- HTTP authentication (Basic, Digest, NTLM, Kerberos, Client Cert)
- File download
- URL schemes
mailto:
,geo:
,tel:
- Secured cookies storage
- Secured HTTP cache
- WebSocket
- WebWorker
- SSO
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.
$ yarn add <path>/ui-components/BlackBerry-Dynamics-for-React-Native-WebView
$ cd ios
$ pod install
$ cd ..
$ react-native run-ios
$ react-native run-android
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.
$ cd <appFolder>
$ yarn remove BlackBerry-Dynamics-for-React-Native-WebView
$ cd ios
$ pod install
$ cd ..
- [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