react-native-boxes 1.4.69 → 1.4.70

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Bar.tsx +5 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-boxes",
3
- "version": "1.4.69",
3
+ "version": "1.4.70",
4
4
  "description": "A react native library for rapid development of UI using boxes",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/Bar.tsx CHANGED
@@ -202,16 +202,17 @@ export function BottomNavBar(props: ViewProps &
202
202
  }}
203
203
  {...props}
204
204
  style={[{
205
+ width: isDesktop() ? '50%' : '100%',
206
+ position: 'absolute',
207
+ bottom: 0,
208
+ left: isDesktop() ? '25%' : 0,
209
+ right: isDesktop() ? '25%' : 0,
205
210
  flex: 1,
206
211
  margin: 0,
207
212
  marginBottom: theme?.insets?.bottom || 0,
208
213
  backgroundColor: theme.colors.forground,
209
214
  zIndex: 100,
210
- width: '100%',
211
215
  justifyContent: 'space-around',
212
- left: 0,
213
- bottom: 0,
214
- position: 'absolute'
215
216
  }, props.style]}
216
217
  >
217
218
  {