diff --git a/package.json b/package.json index aa43ddf..83bacde 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@procivis/one-react-native-components", - "version": "0.1.34", + "version": "0.1.35", "description": "Common Procivis ONE UI components for react-native", "main": "lib/commonjs/index", "module": "lib/module/index", diff --git a/src/credential/credential-attribute-item.tsx b/src/credential/credential-attribute-item.tsx index a7c415d..73e9ad5 100644 --- a/src/credential/credential-attribute-item.tsx +++ b/src/credential/credential-attribute-item.tsx @@ -247,7 +247,9 @@ const CredentialAttributeItem: FC = ({ ))} - {rightAccessoryView} + {rightAccessoryView && ( + {rightAccessoryView} + )} @@ -345,7 +347,7 @@ const styles = StyleSheet.create({ paddingLeft: 13, }, objectAccessory: { - top: 0, + alignSelf: 'flex-start', }, objectAttributeItem: { alignItems: 'stretch', @@ -353,8 +355,7 @@ const styles = StyleSheet.create({ paddingLeft: 12, }, rightAccessory: { - position: 'absolute', - right: 8, + paddingHorizontal: 8, }, separator: { height: 1,