react-native-boxes 1.4.68 → 1.4.69

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 +2 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-boxes",
3
- "version": "1.4.68",
3
+ "version": "1.4.69",
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
@@ -323,7 +323,7 @@ export function PressableView(props: PressableProps) {
323
323
  return (<Pressable {...props} style={({ pressed }) => [{ opacity: pressed ? 0.7 : 1.0 }, props.style]} />)
324
324
  }
325
325
 
326
- export function SwitchView(props: SwitchProps & { text?: string, orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined }) {
326
+ export function SwitchView(props: SwitchProps & { text?: string, orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined, textStyle?: TextStyle }) {
327
327
  const theme = useContext(ThemeContext)
328
328
  return (
329
329
  <HBox style={[{
@@ -346,9 +346,7 @@ export function SwitchView(props: SwitchProps & { text?: string, orientation?: "
346
346
  />
347
347
  {
348
348
  props.text && (
349
- <TextView style={{
350
- paddingStart: theme.dimens.space.md
351
- }}>{props.text}</TextView>
349
+ <TextView style={props.textStyle}>{props.text}</TextView>
352
350
  )
353
351
  }
354
352
  </HBox>