@boneframework/native-components 1.0.42 → 1.0.44

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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ImageBackground } from "react-native";
2
+ import { ImageBackground } from "expo-image";
3
3
  import { LinearGradient } from 'expo-linear-gradient';
4
4
 
5
5
  function Background({children, imageSource = null, gradientColors = null, blurRadius= 10, ...rest}) {
@@ -8,7 +8,7 @@ import colors from '../../../../config/colors'
8
8
  import {MaterialCommunityIcons} from "@expo/vector-icons";
9
9
  import useStyle from "../hooks/useStyle";
10
10
 
11
- function ListItemSwipable({title, subtitle, image, IconComponent, onPress, renderRightActions, displayCheverons}) {
11
+ function ListItemSwipable({title, subtitle, image, IconComponent, onPress, renderRightActions, displayCheverons, titleStyle, subtitleStyle}) {
12
12
  const style = useStyle();
13
13
 
14
14
  if (!title && subtitle) {
@@ -35,10 +35,11 @@ function ListItemSwipable({title, subtitle, image, IconComponent, onPress, rende
35
35
  },
36
36
  title: {
37
37
  color: style.text.color,
38
- fontSize: 14
38
+ ...titleStyle
39
39
  },
40
40
  subtitle: {
41
- color: colors.medium
41
+ color: colors.medium,
42
+ ...subtitleStyle
42
43
  }
43
44
  });
44
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boneframework/native-components",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
4
4
  "description": "Expo React Native Components for Bone Framework",
5
5
  "main": "src/Bone.ts",
6
6
  "scripts": {
@@ -0,0 +1,7 @@
1
+ import {Href, RouteParamInput} from "expo-router";
2
+
3
+ const url = (href: any, params: RouteParamInput<any>): Href => {
4
+ return { pathname: href, params: params}
5
+ };
6
+
7
+ export default url;