Skip to content

Commit

Permalink
Merge branch 'DEV-radio-group-scroll-prop' into 'main'
Browse files Browse the repository at this point in the history
[DEV] Radio group - added scrollEnabled prop

See merge request procivis/one/one-react-native-components!138
  • Loading branch information
procivisAG committed Sep 16, 2024
2 parents ad67a76 + 7702854 commit 660685f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@procivis/one-react-native-components",
"version": "0.1.36",
"version": "0.1.37",
"description": "Common Procivis ONE UI components for react-native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
3 changes: 3 additions & 0 deletions src/input/radio-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export type RadioGroupProps = {
selectedItem?: React.Key;
style?: StyleProp<ViewStyle>;
testID?: string;
scrollEnabled?: boolean;
};

const RadioGroup: FunctionComponent<RadioGroupProps> = ({
Expand All @@ -38,11 +39,13 @@ const RadioGroup: FunctionComponent<RadioGroupProps> = ({
onEndReached,
onGetItemAccessibilityLabel,
testID,
scrollEnabled = true,
}) => {
const colorScheme = useAppColorScheme();

return (
<FlatList<RadioGroupItem>
scrollEnabled={scrollEnabled}
ListFooterComponent={listFooter}
ListFooterComponentStyle={listFooterStyle}
contentContainerStyle={containerStyle}
Expand Down

0 comments on commit 660685f

Please sign in to comment.