Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to focus icon of active screen react native

// use prop {focused} like in example:

<Tab.Screen
    name="Home"
    component={HomeScreen}
    options={{
       tabBarIcon: ({ focused }) => (
            <Image
               source={require("./assets/lock.png")}
               style={{
                  width: 25,
                  height: 25,
                  tintColor: focused ? "#e91e63" : "#748c94",
               }}
            />
       ),
    }}
/>

// you'll find more informations here:
// https://reactnavigation.org/docs/tab-based-navigation/
// and here
// https://youtu.be/gPaBicMaib4?t=604
Comment

PREVIOUS NEXT
Code Example
Javascript :: angular readonly/Disabled if value is not null 
Javascript :: connect vite with node js 
Javascript :: exiting jshell 
Javascript :: jquery set multiple css properties 
Javascript :: expo textinput caret style 
Javascript :: set storage react 
Javascript :: htaccess to deploy react app to cpanel 
Javascript :: how to get all items in localstorage 
Javascript :: react count up every second 
Javascript :: javascript time ago function 
Javascript :: js round up decimal 
Javascript :: react localstorage 
Javascript :: import json typescript 
Javascript :: node js cron restart every round hour 
Javascript :: js how to know if element touch border 
Javascript :: react native code push app center key 
Javascript :: express get request origin 
Javascript :: js set checkbox checked 
Javascript :: react material modal custom backdrop 
Javascript :: multi stage node js dockerfile 
Javascript :: regular expression should not contain special character 
Javascript :: ohmyscript.com 
Javascript :: pipefy api search card field 
Javascript :: sum the all values from an array 
Javascript :: javascript get int val 
Javascript :: change version of node mac 
Javascript :: quotient js 
Javascript :: Não é possível chamar Veiculo.create(). O método create não foi configurado. O PersistedModel não foi conectado corretamente a uma DataSource! 
Javascript :: update node mac 
Javascript :: javascript get date start of today 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =