Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chicio/react-native-native-modules-communication
An example project created for my blog post "React Native: a simple architecture for Native Modules communication with your UIViewController on iOS" and "React Native: a simple architecture for Native Modules communication with your Activities and Fragments on Android" :iphone::collision:
https://github.com/chicio/react-native-native-modules-communication
android architecture eventbus ios java native-modules native-modules-communication nsnotificationcenter objective-c react-native swift
Last synced: 25 days ago
JSON representation
An example project created for my blog post "React Native: a simple architecture for Native Modules communication with your UIViewController on iOS" and "React Native: a simple architecture for Native Modules communication with your Activities and Fragments on Android" :iphone::collision:
- Host: GitHub
- URL: https://github.com/chicio/react-native-native-modules-communication
- Owner: chicio
- License: mit
- Created: 2018-11-05T20:52:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-28T08:39:40.000Z (about 3 years ago)
- Last Synced: 2024-11-17T03:29:39.326Z (3 months ago)
- Topics: android, architecture, eventbus, ios, java, native-modules, native-modules-communication, nsnotificationcenter, objective-c, react-native, swift
- Language: Java
- Homepage: https://www.fabrizioduroni.it/blog/
- Size: 15.2 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# React Native Native Modules Communication
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/chicio/React-Native-Native-Modules-Communication/master/LICENSE.md)
An example project in which I describe a simple architecture for communication between React Native Native Modules
(usually called bridges) and the Native UIViewController/Activity/Fragment that host the React Native component.
Generally speaking the architecture shown in this project is useful to let the Native Modules communicate with your
existing native codebase.
This is a project for my blog posts:
* [React Native: a simple architecture for Native Modules communication with your native code on Android](https://www.fabrizioduroni.it/2018/12/02/react-native-modules-bridge-communication-activitiy-fragment-android/ "React Native: a simple architecture for Native Modules communication with your Activities and Fragments on Android")
* [React Native: a simple architecture for Native Modules communication with your UIViewController on iOS](https://www.fabrizioduroni.it/2018/12/03/react-native-modules-bridge-communication-uiviewcontroller-ios/ "React Native: a simple architecture for Native Modules communication with your UIViewController on iOS")### Description
This are some quotes from the posts:
> ...Sometimes when you integrated React Native in an existing app, you will want to be able let your Native
Modules bridges communicate with your activities and fragment, especially the ones that contain the React Native View
. In this post I will show you an architecture to put in place this communication on Android, that will be compatible
with all the features of React Native (for example it will work als with the live reload functionality)...Click on the links above to read the posts.