@quintype/native-components 2.30.2-center-align-title-beta → 2.30.2-center-align-title-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -105,10 +105,11 @@ export const StoryHeader = (props) => {
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
const getSectionName = (storyLayout = 'default') => {
|
|
108
|
-
const style = isHeadLinePriorityLayout ? styles.headlinePriority.sectionText : styles.sectionText
|
|
108
|
+
const style = isHeadLinePriorityLayout ? styles.headlinePriority.sectionText : styles.sectionText;
|
|
109
|
+
const centerAlignStyle = centerAlignStoryTitle? styles?.centerAlign: ''
|
|
109
110
|
return <TouchableOpacity onPress={navigateToSection}>
|
|
110
111
|
<Text
|
|
111
|
-
style={style}
|
|
112
|
+
style={[style, centerAlignStyle]}
|
|
112
113
|
testID={COMP_CONTENT_CONSTANTS.sectionName}
|
|
113
114
|
>
|
|
114
115
|
{sectionData['display-name'] || ''}
|