From 04a2421c9276aee97002801f6db3c1565c136a74 Mon Sep 17 00:00:00 2001 From: Ren Date: Mon, 14 Oct 2019 11:04:04 +1100 Subject: [PATCH] Add item object extra options info --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index ef7a5a3..eec79c1 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,12 @@ Any child items of that item should be in `subKey`, and they will have `uniqueKe Sub categories are optional, there's no need to have `subKey` items if you don't want to. +You can also pass in extra options to individual items: + +- `disabled: true` - the item will be disabled +- Icons: the component prop `iconKey` is the name of the property that individual item icons will be derived from. E.g `icon: {uri: ...}`. See full example [here](https://github.com/renrizzolo/react-native-sectioned-multi-select/blob/master/Recipes.md#item-icons) + + ## Props Props, there are lots.