|
|
|
@ -10,7 +10,6 @@ import {
@@ -10,7 +10,6 @@ import {
|
|
|
|
|
Platform, |
|
|
|
|
} from 'react-native' |
|
|
|
|
import { FlatList } from 'react-native-gesture-handler' |
|
|
|
|
import RBSheet from 'react-native-raw-bottom-sheet' |
|
|
|
|
import { |
|
|
|
|
$size, |
|
|
|
|
Button, |
|
|
|
@ -55,8 +54,9 @@ export const SelectTaxonomiesModalSmart = () => {
@@ -55,8 +54,9 @@ export const SelectTaxonomiesModalSmart = () => {
|
|
|
|
|
|
|
|
|
|
const [modalHeight, setModalHeight] = useState(screenHeight - $size(150)) |
|
|
|
|
|
|
|
|
|
const [selectedItem, selectItem] = useState<ITaxonomyShortInfo>({} as any) |
|
|
|
|
const [selectedItem, selectItem] = useState<ITaxonomyShortInfo>() |
|
|
|
|
const [searchString, setsearchString] = useState<string>() |
|
|
|
|
|
|
|
|
|
const title = useMemo(() => { |
|
|
|
|
if (type === 'reason') return 'Оберіть підставу' |
|
|
|
|
return 'Оберіть групу' |
|
|
|
@ -205,7 +205,7 @@ const createStyles = (theme: PartialTheme) =>
@@ -205,7 +205,7 @@ const createStyles = (theme: PartialTheme) =>
|
|
|
|
|
container: { |
|
|
|
|
borderTopRightRadius: 35, |
|
|
|
|
borderTopLeftRadius: 35, |
|
|
|
|
backgroundColor: theme.$layoutBg, |
|
|
|
|
backgroundColor: theme.modal.$bg, |
|
|
|
|
marginTop: isAndroid($size(20), 0), |
|
|
|
|
...Platform.select({ |
|
|
|
|
ios: { |
|
|
|
@ -223,6 +223,8 @@ const createStyles = (theme: PartialTheme) =>
@@ -223,6 +223,8 @@ const createStyles = (theme: PartialTheme) =>
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
indicator: { |
|
|
|
|
backgroundColor: theme.modal.$indicatorBg, |
|
|
|
|
width: $size(70), |
|
|
|
|
...Platform.select({ |
|
|
|
|
android: { |
|
|
|
|
transform: [{ translateY: 20 }], |
|
|
|
@ -249,8 +251,7 @@ const createStyles = (theme: PartialTheme) =>
@@ -249,8 +251,7 @@ const createStyles = (theme: PartialTheme) =>
|
|
|
|
|
header: { |
|
|
|
|
borderBottomWidth: 1, |
|
|
|
|
borderBottomColor: theme.$border, |
|
|
|
|
|
|
|
|
|
backgroundColor: theme.$layoutBg, |
|
|
|
|
backgroundColor: theme.modal.$bg, |
|
|
|
|
}, |
|
|
|
|
item: { |
|
|
|
|
alignSelf: 'stretch', |
|
|
|
|