[X] I checked for possible duplicate issues, with possible answers.
Bug summary
How can I test the use of these two attributes, statiusBarTranslucent and navigationBarTranslucent, and make them effective? Are these two attributes applied to the status and @ navigation/back of rn?
Before submitting a new issue
Bug summary
How can I test the use of these two attributes, statiusBarTranslucent and navigationBarTranslucent, and make them effective? Are these two attributes applied to the status and @ navigation/back of rn?
Library version
6.1.1
Environment info
Steps to reproduce
import React from 'react'; import { useState, useEffect } from 'react'; import { Animated, View, Text, Dimensions, Platform, StatusBar, StyleSheet, } from 'react-native'; import BootSplash from 'react-native-bootsplash';
const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#FFFFFF', }, text: { fontSize: 30, fontWeight: '700', margin: 20, lineHeight: 30, color: '#333', textAlign: 'center', }, });
type Props = { onAnimationEnd: () => void; };
const useNativeDriver = Platform.OS !== 'web';
const AnimatedBootSplash = ({ onAnimationEnd }: Props) => { const [opacity] = useState(() => new Animated.Value(1)); const [translateY] = useState(() => new Animated.Value(0));
const { container, logo /, brand / } = BootSplash.useHideAnimation({ manifest: require('../source/bootsplash_manifest.json'), logo: require('../source/bootsplash_logo.png'), // darkLogo: require("../assets/bootsplash/dark-logo.png"), // brand: require("../assets/bootsplash/brand.png"), // darkBrand: require("../assets/bootsplash/dark-brand.png"),
});
return ( <Animated.View {...container} style={[container.style, { opacity }]}>
); };
const UseHideAnimationTest = () => { const [visible, setVisible] = useState(true); return ( <View style={{ height: '80%', width: '100%' }}>
); };
export const BootSplashDemo1 = () => { const [visible, setVisible] = useState(true); useEffect(() => { // StatusBar.setBarStyle('light-content'); if (Platform.OS !== 'android') { // StatusBar.setBackgroundColor('transparent'); // StatusBar.setTranslucent(true); } }, []);
return (
); };
Reproducible sample code