nn-widgets 0.1.19 → 0.1.20

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nn-widgets",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "Expo config plugin for adding native widgets (iOS WidgetKit & Android App Widgets)",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -1 +1 @@
1
- {"version":3,"file":"withAndroidWidget.d.ts","sourceRoot":"","sources":["../src/withAndroidWidget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,sBAAsB,CAAC;AAGzE,OAAO,KAAK,EACV,oBAAoB,EAGrB,MAAM,SAAS,CAAC;AA+mCjB,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,oBAAoB,CAwQhE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"withAndroidWidget.d.ts","sourceRoot":"","sources":["../src/withAndroidWidget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,sBAAsB,CAAC;AAGzE,OAAO,KAAK,EACV,oBAAoB,EAGrB,MAAM,SAAS,CAAC;AAknCjB,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,oBAAoB,CAwQhE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -997,14 +997,14 @@ function generateFlexGridCellListLayoutXml(w) {
997
997
  android:layout_weight="1"
998
998
  android:orientation="horizontal"
999
999
  android:gravity="center_vertical"
1000
- android:paddingHorizontal="6dp"
1001
- android:paddingVertical="4dp">
1000
+ android:paddingHorizontal="4dp"
1001
+ android:paddingVertical="2dp">
1002
1002
 
1003
1003
  <ImageView
1004
1004
  android:id="@+id/cell_icon"
1005
- android:layout_width="36dp"
1006
- android:layout_height="36dp"
1007
- android:layout_marginEnd="8dp"
1005
+ android:layout_width="32dp"
1006
+ android:layout_height="32dp"
1007
+ android:layout_marginEnd="6dp"
1008
1008
  android:scaleType="centerCrop"
1009
1009
  android:visibility="gone" />
1010
1010
 
@@ -1018,20 +1018,22 @@ function generateFlexGridCellListLayoutXml(w) {
1018
1018
  android:id="@+id/cell_title"
1019
1019
  android:layout_width="match_parent"
1020
1020
  android:layout_height="wrap_content"
1021
- android:textSize="13sp"
1021
+ android:textSize="12sp"
1022
1022
  android:textStyle="bold"
1023
1023
  android:textColor="${titleColor}"
1024
1024
  android:maxLines="1"
1025
- android:ellipsize="end" />
1025
+ android:ellipsize="end"
1026
+ android:singleLine="true" />
1026
1027
 
1027
1028
  <TextView
1028
1029
  android:id="@+id/cell_description"
1029
1030
  android:layout_width="match_parent"
1030
1031
  android:layout_height="wrap_content"
1031
- android:textSize="11sp"
1032
+ android:textSize="10sp"
1032
1033
  android:textColor="${subtitleColor}"
1033
1034
  android:maxLines="1"
1034
1035
  android:ellipsize="end"
1036
+ android:singleLine="true"
1035
1037
  android:visibility="gone" />
1036
1038
  </LinearLayout>
1037
1039
 
@@ -1050,12 +1052,12 @@ function generateFlexGridCellCardLayoutXml(w) {
1050
1052
  android:layout_weight="1"
1051
1053
  android:orientation="vertical"
1052
1054
  android:gravity="center"
1053
- android:padding="4dp">
1055
+ android:padding="2dp">
1054
1056
 
1055
1057
  <ImageView
1056
1058
  android:id="@+id/cell_icon"
1057
- android:layout_width="40dp"
1058
- android:layout_height="40dp"
1059
+ android:layout_width="28dp"
1060
+ android:layout_height="28dp"
1059
1061
  android:scaleType="centerCrop"
1060
1062
  android:visibility="gone" />
1061
1063
 
@@ -1063,12 +1065,13 @@ function generateFlexGridCellCardLayoutXml(w) {
1063
1065
  android:id="@+id/cell_title"
1064
1066
  android:layout_width="match_parent"
1065
1067
  android:layout_height="wrap_content"
1066
- android:layout_marginTop="4dp"
1067
- android:textSize="10sp"
1068
+ android:layout_marginTop="2dp"
1069
+ android:textSize="9sp"
1068
1070
  android:textColor="${titleColor}"
1069
- android:maxLines="2"
1071
+ android:maxLines="1"
1070
1072
  android:ellipsize="end"
1071
- android:gravity="center" />
1073
+ android:gravity="center"
1074
+ android:singleLine="true" />
1072
1075
 
1073
1076
  </LinearLayout>
1074
1077
  `;