activeBackgroundColor在DrawerItem ReactNavigation v5中不起作用

时间:2020-04-17 18:43:57

标签: javascript react-native react-navigation react-native-navigation react-navigation-v5

我只需要帮助,activeBackgroundColor在React-navigation v5中的DrawerItem中不起作用。但是inactiveBackgroundColor起作用。请帮助我:(

<DrawerItem
            label="Porte Monnaie"

            labelStyle={styles.drawerLabel}
            style={styles.link}
activeBackgroundColor={'red'}
            onPress={() => props.navigation.navigate("Solde")}
            icon={() => (
              <Image
                style={{ width: 20, height: 20 }}
                source={require("../../assets/images/wallet.png")}
              />
            )}
          /> ```

0 个答案:

没有答案