New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aliyun-rn-mobi-sdk

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aliyun-rn-mobi-sdk

`aliyun-rn-mobi-sdk` 是一个用于 React Native 的 WebView 组件封装,支持与 Web 内容进行交互。

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-88.89%
Maintainers
0
Weekly downloads
 
Created
Source

aliyun-rn-mobi-sdk

aliyun-rn-mobi-sdk 是一个用于 React Native 的 WebView 组件封装,支持与 Web 内容进行交互。

安装

npm install aliyun-rn-mobi-sdk

快速开始

import React from 'react';
import { MobiCopilotWebView } from 'aliyun-rn-mobi-sdk';

const MyApp = () => (
  <MobiCopilotWebView
    handlerNavigateTo={(routerKey, params) => console.log('Navigate to:', routerKey, params)}
    hanlderMobiErrorWithCode={(code, message) => console.error('Error:', code, message)}
    source={{ uri: 'https://mobi-runtime-url.com' }}
    accessToken=""
    style={{ flex: 1 }}
  />
);

export default MyApp;

组件属性

属性名类型说明
handlerNavigateTo(routerKey: string, params?: Record<string, any>) => void处理导航请求。
hanlderMobiErrorWithCode(code: MobiErrorCode, message: string) => void处理错误信息。
handlerMobiNavigateErrorWithRouterKey(routerKey: string, code: MobiErrorCode, message: string) => void处理导航错误。
accessTokenstring传递身份验证令牌,开发环境无需传递
...othersWebViewProps其他 WebView 属性。

FAQs

Package last updated on 06 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc