From 82962283b0128561a206a5d718baa2059059cf49 Mon Sep 17 00:00:00 2001 From: Vimal Atreya Ramaka Date: Wed, 5 Dec 2018 16:21:31 +0530 Subject: [PATCH 1/3] add prop for subitem display key --- .idea/encodings.xml | 4 + .idea/inspectionProfiles/Project_Default.xml | 6 + .idea/misc.xml | 6 + .idea/modules.xml | 8 + .idea/react-native-sectioned-multi-select.iml | 12 + .idea/vcs.xml | 6 + .idea/workspace.xml | 218 ++++++++++++++++++ lib/components/RowSubItem.js | 3 +- lib/sectioned-multi-select.js | 2 + 9 files changed, 264 insertions(+), 1 deletion(-) create mode 100644 .idea/encodings.xml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/react-native-sectioned-multi-select.iml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..15a15b2 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..03d9549 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..24eb271 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..f5673f1 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/react-native-sectioned-multi-select.iml b/.idea/react-native-sectioned-multi-select.iml new file mode 100644 index 0000000..24643cc --- /dev/null +++ b/.idea/react-native-sectioned-multi-select.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..1668c70 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,218 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + displ + rowsub + subitem + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - 1544005325351 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file From 0e991ebb7e602ceaa8572ed6033f7944bb9bfbce Mon Sep 17 00:00:00 2001 From: Vimal Atreya Ramaka Date: Fri, 7 Dec 2018 17:20:31 +0530 Subject: [PATCH 3/3] fallback to displayKey --- lib/components/RowSubItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/RowSubItem.js b/lib/components/RowSubItem.js index 78b1b63..ed82076 100644 --- a/lib/components/RowSubItem.js +++ b/lib/components/RowSubItem.js @@ -94,7 +94,7 @@ class RowSubItem extends Component { ] } > - {subItem[subItemDisplayKey]} + {subItem[subItemDisplayKey ? subItemDisplayKey : displayKey]} { itemSelected || highlightChild ?