Giter Club home page Giter Club logo

react-native-spinkit's Introduction

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
  • ThreeBounce
  • Wave
  • 9CubeGrid
  • More to come...
    Contributors welcomed, submit a PR to add a missing type :)

Acknowledgements

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

react-native-spinkit's People

Contributors

maxs15 avatar nishanthshankar avatar yamill avatar

Watchers

 avatar Paul Wong avatar James Cloos avatar Pete Williams avatar Chu avatar  avatar Scott Brown 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.