For example , declared activeTabIndex
How to see if i am setting the activeTabIndex event?
Here is the code:
<TouchableOpacity onPress={() => setActiveTabIndex(0)} style={{ width: Dimensions.get("window").width / 4, padding: 5, alignItems: "center" }}>
<Home height={30} width={22} fill={activeTabIndex == 0 ? "blue" : "#d4e6f1"} />
</TouchableOpacity>
Where to write console.log(activeTabIndex) or something)