Giter Club home page Giter Club logo

jojo769 / react-native-tizen-dotnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from onerain/react-native-tizen-dotnet

0.0 0.0 0.0 40.1 MB

React Native is an open source framework for building native apps with React.JS. It is supported in Android, iOS and Windows currently. And react-native-tizen-dotnet is a React Native framework for developer to build Tizen.NET apps on Tizen. It provides the same fundamental UI components and user experience with Tizen native Apps. Also it provides a easy and fast debugging way with Hot Module Reloading feature.

License: MIT License

C# 70.95% Makefile 0.02% C 9.07% C++ 0.05% JavaScript 19.91%

react-native-tizen-dotnet's Introduction

react-native-tizen-dotnet

react-native-tizen-dotnet is a React Native framework for developer to build Tizen.NET apps on Tizen.
It provides the same fundamental UI components and user experience with Tizen native Apps. Also it provides a easy and fast debugging way with Hot Module Reloading feature.

react-native-tizen-dotnet is based on react-native v0.42 and react-native-windows v0.42.

Compatibility

react-native-tizen-dotnet may not support all React Native Components and APIs.
Review our docs for information about currently supported Components and APIs.

Source Code Directory Structure

react-native-tizen-dotnet
├── Devtools/ - Development tool .
├── Docs/ - Components & APIs Documents.
├── Example/ - Example of react-native-tizen-dotnet App.
└── Framework/ - react-native-tizen-dotnet Framework.
    ├── react-native-tizen/ - JS Library.
    └── ReactNet/ - Native Framework based on .NET Code.

Framework

Getting Started

Developer Dependencies

Install

sudo npm i -g create-react-native-tizen-app

Usage

  • create-react-native-tizen-app myTizenApp
  • cd myTizenApp
  • vim package.json change "tvip": "192.168.100.1" to your Tv IP
  • yarn bundle for release mode (npm run bundle)
  • yarn bundle --dev for dev mode, js file not ugly (npm run bundle --dev)
  • yarn package packaging tpk for Tizen (npm run package)
  • yarn launch launch tpk to Tizen TV , Before launch you Enable Developer Mode on the TV to TV) first (npm run launch)

Connect to TV

Refer to this website, Enable Developer Mode on the TV:
https://developer.samsung.com/SmartTV/develop/getting-started/using-sdk/tv-device.html

Running in emulator

Note: react-native-tizen-dotnet depends on the C++ libraries JSCore and yoga. The emulator has a diffrent CPU Arch than TV devices. So we provide diffrent C++ libraries (arm & i586).

When creating a new react-native-tizen-dotnet project, the ARM base library path is your-project\Tizen\lib\.
If you want to your app in the emulator, you must replace the ARM library path with the i586 based libraries.

The paths for i586 libraries are:

Framework/ReactNet/JSCore/libJSCore_i586.so
Framework/ReactNet/yoga/libyoga_i586.so

Debug

react-native-tizen-dotnet supports the same familiar debugging tooling as react-native such as Hot Reloading, JS Remote Debugging.

To enable debugging, you need follow these steps:

  1. Modify the package.json file in your app.

    Set config.mode to Debug (Default setting is Release)

    // package.json
    {
      // ...
      "config": {
        // ...
        "mode": "Debug"
      },
    // ...
    }
  2. Launch the debug server on your local machine.

    npm run server

    The server should now be running on port 8081.

  3. Package your app and launch on TV

    • yarn package
    • yarn launch

    Note: Your app should launch and connect to debug server automatically.

  4. Use the TV Remote's Red or A button to configure debug settings.

    Note: If your app can't connect to debug server, you can set host IP in this same manner.

    Note: If input panel is hard to use, suggest using real keybroad

react-native-tizen-dotnet's People

Contributors

sutaking avatar maomao-zk avatar opennext avatar dependabot[bot] avatar blueblizza avatar ppaneksamsung avatar jfrux avatar somang-park 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.