react-native-geckoview
react-native-geckoview copied to clipboard
Mozilla's GeckoView (WebView) for React Native on Android.
react-native-geckoview 
Based on GeckoView. Just a proof of concept.
This will never support ios, so its android only.
Getting started
-
$ yarn add react-native-geckoview -
Add the following to your
build.gradle's repositories section. (android/build.gradle)
allprojects {
repositories {
// ...
// ...
// ADD THIS
maven {
url "https://maven.mozilla.org/maven2/"
}
}
}
$ yarn android
Usage
import GeckoView from 'react-native-geckoview';
<GeckoView source={{ uri: 'https://www.google.com' }} />;
TODO
goBack method
Better docs on how to load FF extension
Add a whitelistUrls prop like on rn-webview so we can open some urls outside of the webview
onLoad prop
onError prop
reload method
userAgent prop
injecting Javascript should be tricky to do as the way to do it is with a firefox extension
Set geckoView version and channel from app gradle
permissions (camera mic etc )