https://github.com/rhdeck/react-native-swift-demo-app
App to demonstrate how to link a swift-based native module
https://github.com/rhdeck/react-native-swift-demo-app
Last synced: over 1 year ago
JSON representation
App to demonstrate how to link a swift-based native module
- Host: GitHub
- URL: https://github.com/rhdeck/react-native-swift-demo-app
- Owner: rhdeck
- License: mit
- Created: 2017-10-05T21:44:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-15T23:11:17.000Z (over 8 years ago)
- Last Synced: 2025-01-22T00:35:40.900Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-swift-demo-app
I was going to post the react native project for this, but it's actually pretty simple.
```
react-native init [projectname]
cd [projectname]
Copy the App.js from this repository into your project directory.
npm install --save rhdeck/react-native-swift-demo-module
npm install --save react-native-swift
npm install
react-native link
```
Done! To Test:
```
react-native run-ios
```
Get a Hell Yeah!
Check out the debugger for the console log output of the sample module doing its thing.