Giter Club home page Giter Club logo

nativekit's Introduction

NativeKit

An iOS Demo for WKWebView supported mini-programs

Test-run Instructons

  1. Prerequisites: npm and xcode 10
  2. cd into ZZeact folder first, and run npm start
  • This will boot up the demo JS app on localhost:8081
  1. open NativeKit.xcworkspace, and hit "Run"
  2. On the TableView you see, pull down to reveal the mini-program drawer
  3. Select the first icon, and you will see the content of localhost:8081.
  • You can now verify the capabilities

Capabilities

  1. JS app UI loaded in the screen
  2. Message passing from JS app to native app
  • Hit like button of the JS app, you will see that the native app navigation title change.
  • Hit close button of the JS app, you will be able to navigate back in the native app.
  1. Message passing from native app to JS app
  • When like button of the JS app is hit, it triggers the native app to send a message to the JS app and change the document content.

Screenshot

nativekit's People

Contributors

zhileiz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.