A collection of animated loading indicators React native port of SpinKit.
npm install react-native-spinkit@latest --save
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-spinkit
and addRNSpinkit.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNSpinkit.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Click
RNSpinkit.xcodeproj
in the project navigator and go theBuild Settings
tab. Make sure 'All' is toggled on (instead of 'Basic'). Look forHeader Search Paths
and make sure it contains both$(SRCROOT)/../react-native/React
and$(SRCROOT)/../../React
- mark both asrecursive
. - Run your project (
Cmd+R
)
Check index.ios.js in the Example folder.
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 |
- CircleFlip
- Bounce
- Wave
- WanderingCubes
- Pulse
- ChasingDots
- ThreeBounce
- Circle
- 9CubeGrid
- WordPress
- FadingCircle
- FadingCircleAlt
- Arc
- ArcAlt
Animations made possible with the awesome work of Ramon Torres SpinKit-ObjC