Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sunnylqm/react-native-geckoview
Mozilla's GeckoView (WebView) for React Native on Android.
https://github.com/sunnylqm/react-native-geckoview
Last synced: 7 days ago
JSON representation
Mozilla's GeckoView (WebView) for React Native on Android.
- Host: GitHub
- URL: https://github.com/sunnylqm/react-native-geckoview
- Owner: sunnylqm
- License: mit
- Created: 2020-01-22T09:25:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T05:50:11.000Z (almost 2 years ago)
- Last Synced: 2024-07-09T12:38:06.961Z (4 months ago)
- Language: Java
- Homepage:
- Size: 774 KB
- Stars: 18
- Watchers: 2
- Forks: 6
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-geckoview [![npm](https://badge.fury.io/js/react-native-geckoview.svg)](https://www.npmjs.com/package/react-native-geckoview)
Based on [GeckoView](https://github.com/mozilla/geckoview). Just a proof of concept.
This will never support ios, so its android only.
## Getting started
1. `$ yarn add react-native-geckoview`
2. Add the following to your `build.gradle`'s repositories section. (android/build.gradle)
```gradle
allprojects {
repositories {
// ...
// ...// ADD THIS
maven {
url "https://maven.mozilla.org/maven2/"
}
}
}
```3. `$ yarn android`
## Usage
```javascript
import GeckoView from 'react-native-geckoview';;
```## 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 )