Code Monkey home page Code Monkey logo

react-native-super-turbo-device-info's Introduction

react-native-turbo-device-info

JSI Turbo module support for react-native-device-info.

Installation

NOTE: Before you get started, this library will work only on react-native new architecture. Make sure you are using react-native 0.68 version at least. This is a pre-release version your project might be crashed in production.

npm install react-native-turbo-device-info

ios

  1. In your podfile make sure you have enabled hermes and fabric flag.
  flags[:hermes_enabled] = true
  flags[:fabric_enabled] = true
  1. Pod install with RCT_NEW_ARCH_ENABLED flag
RCT_NEW_ARCH_ENABLED=1 bundle exec pod install

Android

  1. In android make sure you have hermes enabled. Follow this step to enable hermes.

  2. Enable new Architecture in gradle.properites file

newArchEnabled=true
  1. clean and rebuild your project.

Usage

Curretly This library has only 2 working methods as an experiment.

import { getIpAddress, getMacAddress } from "react-native-turbo-device-info";

// Don't need to use Promise based function since we are using JSI turbo modules this call can be syncronised.

const ipAddress = getIpAddress();

const getMacAddress = getMacAddress();

Contributing

You can make PR if you can migrate any native module methods which is not in exisitng in this library.

If you are facing any problems while installing this library, feel free to create an issue.

License

MIT


Made with create-react-native-library

react-native-super-turbo-device-info's People

Contributors

darshanponikar avatar

Stargazers

Tharyck Gusmao Metzker avatar Roman avatar Ezea Victor Chukwuebuka avatar

Watchers

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