Nativebase: [Feature Request] spinner size

Created on 8 Nov 2018  路  6Comments  路  Source: GeekyAnts/NativeBase

I would like to be able to resize the spinner via props so I can fit it into some views which are too small for the current spinner.

Most helpful comment

Applying this on element style could be another solution:

transform: [{ scaleX: 1.5 }, { scaleY: 1.5 }]

All 6 comments

You can customize spinner size here https://github.com/GeekyAnts/NativeBase/blob/master/src/theme/components/Spinner.js#L7

Go though ejecting theme steps from documentation before proceeding https://docs.nativebase.io/Customize.html#theaming-nb-headref

Thank you. Two things: First, why is that not in the documentation for the spinner? The only thing in the docs in terms of customization is color. Second, is this a global setting? What if I want the spinner to be varying sizes depending on where in the app they are?

Please!!! I have the same issue

You can also use the props size with values small or large because this prop is passed to ActivityIndicator

https://facebook.github.io/react-native/docs/activityindicator#size

Applying this on element style could be another solution:

transform: [{ scaleX: 1.5 }, { scaleY: 1.5 }]

Applying this on element style could be another solution:

transform: [{ scaleX: 1.5 }, { scaleY: 1.5 }]

@Ho3ein-Boka Thanks buddy. This is so brilliant of you. 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Landerson352 picture Landerson352  路  3Comments

aloifolia picture aloifolia  路  3Comments

georgemickael-b picture georgemickael-b  路  3Comments

bsiddiqui picture bsiddiqui  路  3Comments

nschurmann picture nschurmann  路  3Comments