'Create specific time range in react native
I am new with react native and I want to display a component with a specific time range only. This is what i did so far
var timerange = new Date()
return(
<View>
{timerange.getHour() === 8}
<Text>display</Text>
</View>
)
So, if you can see that I display the text in exactly 8 o'clock. I want it to be precisely display at 8 to 16. How do I solve this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
