New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rnkit-splash-screen

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rnkit-splash-screen

splashscreen for react-native

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

npm react-native MIT bitHound Score Downloads

splashscreen for React Native.

Support me with a Follow

Getting Started

First, cd to your RN project directory, and install RNMK through rnpm . If you don't have rnpm, you can install RNMK from npm with the command npm i -S rnkit-splash-screen and link it manually (see below).

iOS

  • React Native < 0.46 (Using rnpm)

    rnpm install rnkit-splash-screen@1.0.3

  • React Native >= 0.46

    $npm install -S rnkit-splash-screen

    $react-native link rnkit-splash-screen

Manually

  • Add node_modules/rnkit-splash-screen/ios/RNKitSplashScreen.xcodeproj to your xcode project, usually under the Libraries group
  • Add libRNKitSplashScreen.a (from Products under RNKitSplashScreen.xcodeproj) to build target's Linked Frameworks and Libraries list
  • Add ocr framework to $(PROJECT_DIR)/Frameworks.

Android

  • React Native < 0.46 (Using rnpm)

    rnpm install rnkit-splash-screen@1.0.3

  • React Native >= 0.46

    $npm install -S rnkit-splash-screen

    $react-native link rnkit-splash-screen

Manually

  • JDK 7+ is required
  • Add the following snippet to your android/settings.gradle:
include ':rnkit-splash-screen'
project(':rnkit-splash-screen').projectDir = new File(rootProject.projectDir, '../node_modules/rnkit-splash-screen/android/app')
  • Declare the dependency in your android/app/build.gradle
dependencies {
    ...
    compile project(':rnkit-splash-screen')
}
  • Import import io.rnkit.splashscreen.SplashScreenPackage; and register it in your MainActivity (or equivalent, RN >= 0.32 MainApplication.java):
@Override
protected List<ReactPackage> getPackages() {
    return Arrays.asList(
            new MainReactPackage(),
            new SplashScreenPackage(MainActivity.activity, true)
    );
}

Finally, you're good to go, feel free to require rnkit-splash-screen in your JS files.

Have fun! :metal:

Basic Usage

Import library

import RNKitSplashScreenManager from 'rnkit-splash-screen'

TipText

RNKitSplashScreenManager.tipText('text')

Progress

progress 0.0 .. 1.0, default is 0.0. values outside are pinned.

RNKitSplashScreenManager.progress(progress)

Open

RNKitSplashScreenManager.open()

Close

RNKitSplashScreenManager.close({animationType: RNKitSplashScreenManager.animationType.scale, duration: 850, delay: 500})

Contribution

Thanks

@cyqresig - react-native-smart-splash-screen

Questions

Feel free to contact me or create an issue

made with ♥

Keywords

react

FAQs

Package last updated on 19 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts