Coder Social home page Coder Social logo

jerp86 / postmessagewithwebview Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 1.21 MB

Project is to demonstrate in a simple way how it is possible to have text and/or object communication between a Native/Hybrid app and a website, through window.postMessage().

License: MIT License

JavaScript 100.00%
react-native react-native-webview react-native-webview-bridge react-native-example postmessage postmessage-api

postmessagewithwebview's Introduction

postMessage with WebView


License


Sobre |  Motivo |  Requisitos


app's main screen, with two buttons alert message after clicking the 1st button alert message after clicking the 2nd button

ℹ️ Sobre

Projeto trata de demostrar de forma simples como é possível haver comunicação de texto e/ou objetos entre um app Nativo/Híbrido e um site, através do window.postMessage().

⁉️ Motivo

Enquanto era produzido um WebApp que será chamado em uma WebView nativa (Android e iOS), foi detectado a necessidade de troca de informações entre o Nativo e WebApp.

🌱 Requisitos Mínimos

NodeJS

🚀 Tecnologias Utilizadas

O projeto foi desenvolvido utilizando as seguintes tecnologias

📦 Como baixar o projeto

Para copiar o projeto, utilize os comandos:

  # Clonar o repositório
  ❯ git clone https://github.com/jerp86/postMessageWithWebView.git

  # Entrar no diretóriocd postMessageWithWebView

Para instalar as dependências e iniciar o projeto, você pode utilizar o Yarn ou NPM:

Utilizando yarn

  # Instalar as dependências
  ❯ yarn

  # Iniciar o projeto
  ❯ yarn start

Utilizando npm

PS: Caso utilize o NPM, apague o arquivo yarn.lock para ter todas as dependências instaladas da melhor forma.

  # Instalar as dependências
  ❯ npm install

  # Iniciar o projeto
  ❯ npm start

📝 Licença

Esse projeto está sob a licença MIT. Veja o arquivo LICENSE para mais detalhes.


Feito com ❤️ por Jerp86 👋️ Entre em contato!

José Eduardo Rodrigues Pinto José Eduardo Rodrigues Pinto

postmessagewithwebview's People

Contributors

dependabot[bot] avatar jerp86 avatar

Watchers

 avatar  avatar  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.