项目作者: dsuryd

项目描述 :
DotNetify + React Native + .NET Core demo
高级语言: JavaScript
项目地址: git://github.com/dsuryd/dotNetify-react-native-demo.git
创建时间: 2017-09-23T03:47:29Z
项目社区:https://github.com/dsuryd/dotNetify-react-native-demo

开源协议:

下载


dotNetify-React-Native Demo" class="reference-link">alt tag dotNetify-React-Native Demo

DotNetify makes it super easy to connect your React Native mobile app to a cross-platform .NET back-end and get real-time two-way communication with WebSockets for free!

Demo Features

  • Reactive push model allows for a very light-weight client. No need to set up REST or GraphQL calls; state change can cause new data to be pushed directly into the component’s state.
  • Token-based authentication over websocket communications with expiration handling.
  • Infinite list scrolling.
  • Live data display for IoT use cases.
  • Connection error handling.
  • Using react-navigation with custom logic to track active screen.

How To Run

Install Node.js and .NET Core SDK.

Install create-react-native-app:

  1. npm i -g create-react-native-app

Follow the instructions on Expo website to install Genymotion Android emulator and/or download the Expo app for iOS or Android.

Run the client on a terminal:

  1. npm install
  2. expo start

Open another terminal and run the server (ASP.NET Core 2.1):

  1. cd server
  2. dotnet build
  3. dotnet run

Android Demo