Based on GeckoView. Just a proof of concept.
This will never support ios, so its android only.
-
$ 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
import GeckoView from 'react-native-geckoview';
<GeckoView source={{ uri: 'https://www.google.com' }} />;
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 )