Skip to content

maxs15/react-native-spinkit

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Repository files navigation

react-native-spinkit

A collection of animated loading indicators React native port of SpinKit.

Preview

Getting started

npm install react-native-spinkit@latest --save

IOS

On IOS the spinners have been developped in Objective-C, therefore you have to include the Library:

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-spinkit and add RNSpinkit.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNSpinkit.a to your project's Build PhasesLink Binary With Libraries
  4. Click RNSpinkit.xcodeproj in the project navigator and go the Build Settings tab. Make sure 'All' is toggled on (instead of 'Basic'). Look for Header Search Paths and make sure it contains both $(SRCROOT)/../react-native/React and $(SRCROOT)/../../React - mark both as recursive.
Android

You're ready to go, android use the spinners developped in JS

Example

Check index.ios.js in the Example folder.

Properties

Prop Default Type Description
isVisible true boolean Visibility of the spinner
color #000000 string Color of the spinner
size 37 number Size of the spinner
type Plane string Style type of the spinner

List of available types

IOS
  • CircleFlip
  • Bounce
  • Wave
  • WanderingCubes
  • Pulse
  • ChasingDots
  • ThreeBounce
  • Circle
  • 9CubeGrid
  • WordPress
  • FadingCircle
  • FadingCircleAlt
  • Arc
  • ArcAlt
Android

Acknowledgements

IOS spinners made possible with the awesome work of Ramon Torres SpinKit-ObjC