prscX / react-native-bottom-action-sheet

React Native: Native Bottom Action Sheet
Apache License 2.0
633 stars 48 forks source link

theme dark doesn't work #62

Open luigbren opened 4 years ago

luigbren commented 4 years ago

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!!!')
});