skip to Main Content

Passing Date object is prop in react – React native

I'm trying to pass a date object as a prop in react native, and access its methods to render data. The prop is passed as following: <Task text={item["text"]} date={item["date"]} time={item["time"]} reminder={item["reminder"]} completed={item["completed"]} /> It is accessed as: <View> <View style={[…

VIEW QUESTION

React Native status bar semi transparent

Is it possible to make StatusBar semi-transparent with an opacity of 0.8? if I pass backgroundColor={"transparent"} like in the docs it becomes fully transparent without color. Docs https://reactnative.dev/docs/statusbar <StatusBar style="light" backgroundColor={"red"} translucent />

VIEW QUESTION

Why I do not see any props in React Native?

I'm trying to pass some props to class component from function component via navigation. At Function component I'm writing: export default function StartScreen() { const navigation = useNavigation(); function onButtonPress(){ navigation.navigate("Main",{'test':'Test'}); } return( <> <AnimatedTouchable onPress={onButtonPress}></AnimatedTouchable> </> ) } At…

VIEW QUESTION
Back To Top
Search