All Projects → finogeeks → finclip-react-native-demo

finogeeks / finclip-react-native-demo

Licence: other
FinClip RN 运行环境,让小程序在 RN 应用中无缝运行 / ReactNative DEMO for FinClip

Programming Languages

javascript
184084 projects - #8 most used programming language
java
68154 projects - #9 most used programming language
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language
Starlark
911 projects

Projects that are alternatives of or similar to finclip-react-native-demo

finclip-flutter-demo
FinClip Flutter 运行环境,让小程序在 Flutter 应用中无缝运行 / Flutter DEMO for FinClip
Stars: ✭ 78 (+116.67%)
Mutual labels:  mini-program, mini-app, finclip
miniprogram-demo
FinClip 小程序演示,用于测试小程序中相关 API 与组件能力 / Mini-Program DEMO for FinClip
Stars: ✭ 49 (+36.11%)
Mutual labels:  mini-program, mini-app, finclip
ReactNativeNote
ReactNative基础知识,和一些在项目中遇到问题的总结,以及一些第三方框架的接入流程,欢迎fork,star~
Stars: ✭ 12 (-66.67%)
Mutual labels:  reactnative, rn
React Native Fingerprint Identify
Awesome Fingerprint Identify for react-native (android only)
Stars: ✭ 81 (+125%)
Mutual labels:  reactnative
React Native Deep Linking
Deep Linking set up in a React Native App
Stars: ✭ 89 (+147.22%)
Mutual labels:  reactnative
React Native Image Marker
Add text or icon watermark to your images
Stars: ✭ 170 (+372.22%)
Mutual labels:  reactnative
React Native Opencv Tutorial
👩‍🏫Fully working example of the OpenCV library used together with React Native
Stars: ✭ 244 (+577.78%)
Mutual labels:  reactnative
Ejdb
🏂 EJDB 2.0 — Embeddable JSON Database engine C library. Simple XPath like query language (JQL). Websockets / Android / iOS / React Native / Flutter / Java / Dart / Node.js bindings. Docker image.
Stars: ✭ 1,187 (+3197.22%)
Mutual labels:  reactnative
Fundamentals Materials
React Native Training - Materials Example App
Stars: ✭ 219 (+508.33%)
Mutual labels:  reactnative
React Native Offline
Handy toolbelt to deal nicely with offline/online connectivity in a React Native app. Smooth redux integration ✈️
Stars: ✭ 2,000 (+5455.56%)
Mutual labels:  reactnative
React Native Directed Scrollview
UNMAINTAINED- see below. A natively implemented scrollview component which lets you specify different scroll directions for child content.
Stars: ✭ 139 (+286.11%)
Mutual labels:  reactnative
React Native Barcode Mask
BarcodeMask Component for RNCamera
Stars: ✭ 90 (+150%)
Mutual labels:  reactnative
Reactotron
A desktop app for inspecting your React JS and React Native projects. macOS, Linux, and Windows.
Stars: ✭ 13,337 (+36947.22%)
Mutual labels:  reactnative
Reanimated Collapsible Navbar
Declarative implementation of a collapsible navigation bar with snapping in React Native, with all animations running on the UI thread 🚀
Stars: ✭ 86 (+138.89%)
Mutual labels:  reactnative
Style Sheet
⚡️💨 Fast styles in JavaScript with support for static CSS extraction.
Stars: ✭ 229 (+536.11%)
Mutual labels:  reactnative
Reactxp Starter
Basic Blank ReactXP Project for Development
Stars: ✭ 75 (+108.33%)
Mutual labels:  reactnative
Flyabbit
🔥组件化,Retrofit,Rxjava2,dagger2,Mvp ,ReactNative ,Atlas(插件化)
Stars: ✭ 219 (+508.33%)
Mutual labels:  reactnative
React Native Navigation Animation
Transition navigation component for React Native
Stars: ✭ 133 (+269.44%)
Mutual labels:  reactnative
React Native Animations
React Native Animations
Stars: ✭ 115 (+219.44%)
Mutual labels:  reactnative
React Native Input Spinner
An extensible input number spinner component for react-native highly customizable. This component enhance a text input for entering numeric values, with increase and decrease buttons.
Stars: ✭ 155 (+330.56%)
Mutual labels:  reactnative

FinClip ReactNative DEMO

本项目提供在 ReactNative 环境中运行小程序的 DEMO 样例

👉 https://www.finclip.com/ 👈


🤔 FinClip 是什么?

有没有想过,开发好的微信小程序能放在自己的 APP 里直接运行,只需要开发一次小程序,就能在不同的应用中打开它,是不是很不可思议?

有没有试过,在自己的 APP 中引入一个 SDK ,应用中不仅可以打开小程序,还能自定义小程序接口,修改小程序样式,是不是觉得更不可思议?

这就是 FinClip ,就是有这么多不可思议!

🤩 效果预览

本项目是 FinClip 小程序在 ReactNative 工程基础上下集成及运行小程序 DEMO 演示,您可以按照下方流程测试,验证 FinClip 小程序在 ReactNative 环境下的实际效果。

先看一下运行效果~

⚙️ 操作步骤

1. 引入插件

引入小程序引擎插件。

在 package.json 文件中引入小程序 ReactNative 插件

"react-native-mopsdk": "^1.0.3"

安装插件

$ npm install react-native-mopsdk --save
$ react-native link react-native-mopsdk

2. 初始化引擎

import MopSDK from 'react-native-mopsdk';
// 1. 引入 NativeModules, NativeEventEmitter
import { NativeModules, NativeEventEmitter } from 'react-native';

// 2. mop初始化
const eventEmitter = new NativeEventEmitter(NativeModules.FINMopSDK);
  MopSDK.initialize({
    appkey:
      'Ev7QHvml1UcW98Y1GaLfRz34ReffbDESaTXbCoFyKhEm0a3gam0elOOOdZ6Twpa3HkBzlvOwJ2cyhOrMVWuuGw==',
    secret: '16f2d2700453ae51',
    apiServer: 'https://api.finclip.com',
    apiPrefix: '/api/v1/mop/',
    nativeEventEmitter: eventEmitter,
    finMopSDK: NativeModules.FINMopSDK,
  }).then(res => {
    console.log('初始化成功')
  }).catch(err => {
    console.log('初始化失败')
  })

3. 打开小程序

MopSDK.openApplet({appId: 'xxxx'});
  • SDK KEYSDK SECRET 可以从 FinClip 获取,点 这里 注册账号;
  • 进入平台后,在「应用管理」页面添加你自己的包名后,点击「复制」即可获得 key\secret\apisever 字段;
  • apiServerapiPrefix 是固定字段,请直接参考本 DEMO ;
  • 小程序 ID 是管理后台上架的小程序 APP ID,需要在「小程序管理」中创建并在「应用管理」中关联;

小程序 ID 与 微信小程序ID 不一样哦!(这里是特指 FinClip 平台的 ID )

📋 接口文档

点击这里 查看 React Native 快速集成文档

🔗 常用链接

以下内容是您在 FinClip 进行开发与体验时,常见的问题与指引信息

☎️ 联系我们

微信扫描下面二维码,关注官方公众号 「凡泰极客」,获取更多精彩内容。

微信扫描下面二维码,加入官方微信交流群,获取更多精彩内容。

Stargazers

Stargazers repo roster for @finogeeks/finclip-react-native-demo

Forkers

Forkers repo roster for @finogeeks/finclip-react-native-demo

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].