Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 )