Skip to content

sunnylqm/react-native-geckoview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-geckoview npm

Based on 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)

allprojects {
    repositories {
      // ...
      // ...

      // ADD THIS
      maven {
          url "https://maven.mozilla.org/maven2/"
      }
    }
}
  1. $ 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 )