React-Native-Loading-Status-Spinner
An extension component to the StatusBar to show the spinner on IOS only.
Installation
yarn add react-native-loading-status-spinner
Utilisation
Replace the StatusBar with the LoadingStatusSpinner component.
You can see an example on expo here or in the example folder.
;;; Component state = people: {} loading: true { this; } _fetchLuke = async { const res = await ; const resJson = await res; this; } { if thisstateloading return <View style=stylescontainer> <ActivityIndicator color="#fff" size="large" /> </View> return <View style=stylescontainer> <LoadingStatusSpinner barStyle="light-content" /> <Text style=stylestext>thisstatepeoplename</Text> </View> ; } const styles = StyleSheet;