react-native-bottom-action-sheet icon indicating copy to clipboard operation
react-native-bottom-action-sheet copied to clipboard

theme dark doesn't work

Open luigbren opened this issue 4 years ago • 0 comments

hello, I'm trying to configure the Theme Dark in SheetView but it doesn't work... I put theme: "dark", and also theme: "Dark", but it always loads the Theme light, tested in Mobil and android emulator 9 and 10


EDIT.. I can configure a theme in a manual way sending by Props the desired values, but I can't find the way to configure the color of the Title, in this example it is: "Awesome Component!"

let facebook = <Icon family={'FontAwesome'} name={'facebook'} color={'#000000'} size={30} />
let instagram = <Icon family={'FontAwesome'} name={'instagram'} color={'#000000'} size={30} />
let SheetView = RNBottomActionSheet.SheetView;

SheetView.Show({
  title: "Awesome Component!",
  items: [
    { title: "Facebook", value: "fb", subTitle: "Facebook Description", icon: facebook },
    { title: "Instagram", value: "insta", subTitle: "Instagram Description", icon: instagram },
  ],
  selection: 3,
  backgroundColor: "#353535", // color backcolor PROPS OK
  titleTextColor: "#dc0000", // color PROPS NO doesn't make any difference
  itemTextColor: "#1ecdcd", // color itemTextColor PROPS OK
  itemTintColor: "#1ecdcd", // color iconos PROPS OK
  onSelection: (index, value) => {
    // value is optional
    console.log("selection: " + index + " " + value);
  },
  onCancel: () => console.log('Closing the bottom SheetView!!!')
});

luigbren avatar Apr 27 '20 23:04 luigbren