npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-fe-webview

v0.1.6

Published

webview

Downloads

4

Readme

react-native-fe-webview

具有访资源问的webview

Features

react-native-webview + quill.js 搭配是可以完成客户端的富文本编辑器,但是react-native-webview没有提供访问本地资源的能力IOS端资源限制,所以需要使用react-native-fe-webview来访问本地资源。react-native-fe-webview 解决的问题是简化通信同时提供访问本地资源的能力。

  • [x] 支持访问本地资源
  • [x] 支持访问远程资源
  • [x] 支持简化通信
  • [x] 支持加载在线HTML
  • [x] 支持加载本地HTML

调试在线H5文件

对于H5编辑器而言,轻微改动然后在客户端代码中进行调试是非常麻烦的,所以我们提供了在线调试的能力。支持在线url 本地启动H5编辑器项目 然后可以时时预览,不用每次需要打包然后丢到客户端代码上! 这个功能对开发非常有用!

Installation

npm install react-native-fe-webview

yarn add react-native-fe-webview

Usage

import {MaxWebView} from 'react-native-fe-webview'


const App = () => {
  const webviewRef = useRef(null)

  // 键盘是单独针对编辑器处理的所以特殊处理了下, 非编辑器的常规使用: onPostMessage/onMessage 即可
  
  const closeKeyBoard = () => {
    webviewRef.current?.closeKeyBoard()
  }
  const openKeyBoard = () => {
    webviewRef.current?.openKeyBoard()
  }

  const initData = () => {
    //payload {type: '', params: []} 
    inputRef.current.onPostMessage(payload)
  }

  return (
    <MaxWebView
      // 支持基本样式  
      style={style}
      // 编辑器ref用于和编辑器的通信交互  
      ref={webviewRef}
      // 支持https在线链接 & 本地资源  
      url={url}
      // 通信函数
      onMessage={(event) => {
        console.log(event.nativeEvent.data)
      }}
    />
  )
}

ps. 加载本地html 目前的处理方案是分别在 ios/android 项目的根目录放置我们的html 比如 xx.html

我们实际使用项目中 需要用到 url={'xx'} 来映射到对应的html