React Native tutorial in Hindi #34 Status Bar
Vložit
- čas přidán 10. 02. 2023
- Instragram Id : code.steps
Here we will learn about how to status bar and how to update the style of the status bar in react native Hindi beginners series. This React native course is made by anil Sidhu in the Hindi language.
Points of video
What is State Bar
How to Update Style for Status Bar
Hide and Show Status Bar
Update status with Button Press
Interview Question
React js Latest Playlist in Hindi: • React tutorial for beg...
inst id: @code.steps
Sir please must humble request to you 🙏🙏🙏 please continue the java course with DSA 🙏🙏🙏🙏 because your way of explaining is very amazing and helpful for every person....
Thank you so much Sir
Thank you sir
❤
Sir buttom bar ko kaise hide kare, mobile ki button ko
Sir bottom navigation ka color kaise change kare?
Laravel with shopify pr video bnaoge kya sir ???
sir Java videos kab tak ayenge?
Sir ios ka status bar kaise krein
sir dosry button oo toggle krny ka tarika btayne please
const [barStyle, setBarStyle] = useState(false);
// rest of code
setBarStyle(!barStyle)}
/>
Toggle Status bar Style :
const STYLES = ['default', 'dark-content', 'light-content'];
const [statusBarStyle, setStatusBarStyle] = useState(STYLES[0]);
const changeStatusBarStyle = () => {
const styleId = STYLES.indexOf(statusBarStyle) + 1;
if (styleId === STYLES.length) {
setStatusBarStyle(STYLES[0]);
} else {
setStatusBarStyle(STYLES[styleId]);
}
};
apply on button press:
onPress={changeStatusBarStyle}