You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
react-native-hud-view is a lightweight, flexible, and customizable progress indicator library for React Native. The library provides an easy way to show a HUD (Heads-up Display) when you need to indicate progress or loading in your application.
react-native-hud-view is a standalone library and does not have any dependencies. However, you will need to provide your own icon component to use with the library. The icon component should accept the following props:color,name, andsize.
We recommend using thereact-native-vector-icons library withreact-native-hud-view, as it is guaranteed to work with the library. To use a different icon library, simply provide the appropriate icon component to theHudProvider component.
You can use theHudProvider component at the root of your application to provide the context for showing the HUD. This component should wrap your application's main component.
You can pass these options as a second argument to theshow method of the HUD context. For example:
show({name:'rocket'},{rotate:true});
You can also use these options to the HudProvider if you want to configured them once, globally.However, when using "show" the global options will be overwritten by the argument options. For example if yourHudProvider is configured like this:
and you executeshow({ name: 'rocket' }, { backgroundColor: 'red' }); the HUD will have the background color red for this particular execution.
Icons
You can use any icon library withreact-native-hud-view. You just need to provide anIconComponent to theHudProvider component. TheIconComponent should accept the following props:
react-native-hud-view is licensed under the MIT License. This means that anyone can use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software as long as they include the original copyright and license notice in all copies or substantial portions of the software.
You are free to usereact-native-hud-view in any commercial or non-commercial project without attribution, but it is always appreciated if you mention the author in your project's acknowledgments or credits.