react-native-boxes 1.4.45 → 1.4.47

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/Button.tsx +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-boxes",
3
- "version": "1.4.45",
3
+ "version": "1.4.47",
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/Button.tsx CHANGED
@@ -318,7 +318,7 @@ export function PressableView(props: PressableProps) {
318
318
  return (<Pressable {...props} style={({ pressed }) => [{ opacity: pressed ? 0.7 : 1.0 }, props.style]} />)
319
319
  }
320
320
 
321
- export function SwitchView(props: SwitchProps & { text?: string, orientation?: 'row' | 'column' }) {
321
+ export function SwitchView(props: SwitchProps & { text?: string, orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined }) {
322
322
  const theme = useContext(ThemeContext)
323
323
  return (
324
324
  <HBox style={[{
@@ -341,7 +341,9 @@ export function SwitchView(props: SwitchProps & { text?: string, orientation?: '
341
341
  />
342
342
  {
343
343
  props.text && (
344
- <TextView>{props.text}</TextView>
344
+ <TextView style={{
345
+ paddingStart: theme.dimens.space.md
346
+ }}>{props.text}</TextView>
345
347
  )
346
348
  }
347
349
  </HBox>