Skip to content

Update README.md #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
[![npm](https://img.shields.io/npm/dt/react-native-smart-splash-screen.svg)](https://www.npmjs.com/package/react-native-smart-splash-screen)
[![npm](https://img.shields.io/npm/l/react-native-smart-splash-screen.svg)](https://github.com/react-native-component/react-native-smart-splash-screen/blob/master/LICENSE)

A smart splash screen for React Native apps, written in JS, oc and java for cross-platform support.
It works on iOS and Android.
A smart splash screen for [React Native](https://github.com/facebook/react-native) apps, written in JS, oc and java for
cross-platform support. It works on iOS and Android.

## Preview

Expand All @@ -21,7 +21,7 @@ npm install react-native-smart-splash-screen --save

## Notice

It can only be used greater-than-equal react-native 0.4.0 for ios, if you want to use the package less-than react-native 0.4.0, use `npm install [email protected] --save`
React-native-smart-splash-screen can only be used with react-native version >= 0.4.0 for ios, if you want to use the package with react-native version < 0.4.0, use `npm install [email protected] --save`

## Installation (iOS)

Expand Down Expand Up @@ -158,10 +158,10 @@ componentDidMount () {

## Method

* close(animationType, duration, delay)
* `close(animationType, duration, delay)`
close splash screen with custom animation

* animationType: determine the type of animation. enum(animationType.none, animationType.fade, animationType.scale)
* animationType: determine the type of `animation.enum(animationType.none, animationType.fade, animationType.scale)`
* duration: determine the duration of animation
* delay: determine the delay of animation

Expand Down