Skip to content

Commit

Permalink
Refactor padding handling and fix duplicate key processing
Browse files Browse the repository at this point in the history
  • Loading branch information
macCesar committed Jan 9, 2025
1 parent 4d6d023 commit 1276b7e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4985,10 +4985,10 @@ function bottomNavigation(modifiersAndValues) {
prop: 'padding, paddingTop, paddingLeft, paddingRight, paddingBottom - Android Only',
modules: 'Ti.UI.Android.CardView, Ti.UI.TabGroup, Ti.UI.ScrollableView'
},
objectPosition,
{
android: modifiersAndValues
}
objectPosition,
{
android: modifiersAndValues
}
)
}
exports.bottomNavigation = bottomNavigation
Expand Down Expand Up @@ -7025,8 +7025,9 @@ function fixDuplicateKeys(compoundClasses) {
paddingObject.forEach(propertyAndValue => {
if (propertyAndValue.includes(',')) {
const separateObjects = propertyAndValue.split(',')
individualPaddingObjects.push(separateObjects[0].trim())
individualPaddingObjects.push(separateObjects[1].trim())
separateObjects.forEach(obj => {
individualPaddingObjects.push(obj.trim())
})
} else {
individualPaddingObjects.push(propertyAndValue)
}
Expand Down

0 comments on commit 1276b7e

Please sign in to comment.