@react-navigation/native 8.0.0-alpha.4 → 8.0.0-alpha.5

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 (51) hide show
  1. package/android/build/.transforms/586a73aab4c351d3f13dc604ca6964e8/transformed/classes/classes_dex/classes.dex +0 -0
  2. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.dex +0 -0
  3. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.dex +0 -0
  4. package/android/build/.transforms/fb9c4b42fa16b6541a5819cb4bf06272/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/org/reactnavigation/MaterialSymbolView.dex +0 -0
  5. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.java +42 -0
  6. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.java +14 -0
  7. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/Props.cpp +71 -1
  8. package/android/build/generated/source/codegen/jni/react/renderer/components/ReactNavigationSpec/Props.h +14 -0
  9. package/android/build/generated/source/codegen/schema.json +1 -1
  10. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  11. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.class +0 -0
  12. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.class +0 -0
  13. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerDelegate.class +0 -0
  14. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/ReactNavigationSFSymbolViewManagerInterface.class +0 -0
  15. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/org/reactnavigation/MaterialSymbolView.class +0 -0
  16. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  17. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  18. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  19. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  20. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  21. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  22. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  23. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  24. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  25. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  26. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  27. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  28. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  29. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  30. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  31. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  32. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  33. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +1 -1
  34. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  35. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  36. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  37. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  38. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  39. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  40. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  41. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  42. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  43. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  44. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  45. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  46. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ReactNavigationSFSymbolViewManagerDelegate.class.uniqueId0 +0 -0
  47. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ReactNavigationSFSymbolViewManagerInterface.class.uniqueId1 +0 -0
  48. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  49. package/android/build/tmp/kotlin-classes/debug/org/reactnavigation/MaterialSymbolView.class +0 -0
  50. package/android/src/main/java/org/reactnavigation/MaterialSymbolView.kt +15 -9
  51. package/package.json +2 -2
@@ -32,6 +32,48 @@ public class ReactNavigationSFSymbolViewManagerDelegate<T extends View, U extend
32
32
  case "color":
33
33
  mViewManager.setColor(view, ColorPropConverter.getColor(value, view.getContext()));
34
34
  break;
35
+ case "weight":
36
+ mViewManager.setWeight(view, value == null ? 0 : ((Double) value).intValue());
37
+ break;
38
+ case "scale":
39
+ mViewManager.setScale(view, value == null ? null : (String) value);
40
+ break;
41
+ case "mode":
42
+ mViewManager.setMode(view, value == null ? null : (String) value);
43
+ break;
44
+ case "colorPrimary":
45
+ mViewManager.setColorPrimary(view, ColorPropConverter.getColor(value, view.getContext()));
46
+ break;
47
+ case "colorSecondary":
48
+ mViewManager.setColorSecondary(view, ColorPropConverter.getColor(value, view.getContext()));
49
+ break;
50
+ case "colorTertiary":
51
+ mViewManager.setColorTertiary(view, ColorPropConverter.getColor(value, view.getContext()));
52
+ break;
53
+ case "animation":
54
+ mViewManager.setAnimation(view, value == null ? null : (String) value);
55
+ break;
56
+ case "animationRepeating":
57
+ mViewManager.setAnimationRepeating(view, value == null ? false : (boolean) value);
58
+ break;
59
+ case "animationRepeatCount":
60
+ mViewManager.setAnimationRepeatCount(view, value == null ? 0 : ((Double) value).intValue());
61
+ break;
62
+ case "animationSpeed":
63
+ mViewManager.setAnimationSpeed(view, value == null ? Float.NaN : ((Double) value).floatValue());
64
+ break;
65
+ case "animationWholeSymbol":
66
+ mViewManager.setAnimationWholeSymbol(view, value == null ? false : (boolean) value);
67
+ break;
68
+ case "animationDirection":
69
+ mViewManager.setAnimationDirection(view, value == null ? null : (String) value);
70
+ break;
71
+ case "animationReversing":
72
+ mViewManager.setAnimationReversing(view, value == null ? false : (boolean) value);
73
+ break;
74
+ case "animationCumulative":
75
+ mViewManager.setAnimationCumulative(view, value == null ? false : (boolean) value);
76
+ break;
35
77
  default:
36
78
  super.setProperty(view, propName, value);
37
79
  }
@@ -17,4 +17,18 @@ public interface ReactNavigationSFSymbolViewManagerInterface<T extends View> ext
17
17
  void setName(T view, @Nullable String value);
18
18
  void setSize(T view, float value);
19
19
  void setColor(T view, @Nullable Integer value);
20
+ void setWeight(T view, int value);
21
+ void setScale(T view, @Nullable String value);
22
+ void setMode(T view, @Nullable String value);
23
+ void setColorPrimary(T view, @Nullable Integer value);
24
+ void setColorSecondary(T view, @Nullable Integer value);
25
+ void setColorTertiary(T view, @Nullable Integer value);
26
+ void setAnimation(T view, @Nullable String value);
27
+ void setAnimationRepeating(T view, boolean value);
28
+ void setAnimationRepeatCount(T view, int value);
29
+ void setAnimationSpeed(T view, float value);
30
+ void setAnimationWholeSymbol(T view, boolean value);
31
+ void setAnimationDirection(T view, @Nullable String value);
32
+ void setAnimationReversing(T view, boolean value);
33
+ void setAnimationCumulative(T view, boolean value);
20
34
  }
@@ -70,7 +70,21 @@ ReactNavigationSFSymbolViewProps::ReactNavigationSFSymbolViewProps(
70
70
 
71
71
  name(convertRawProp(context, rawProps, "name", sourceProps.name, {})),
72
72
  size(convertRawProp(context, rawProps, "size", sourceProps.size, {0.0})),
73
- color(convertRawProp(context, rawProps, "color", sourceProps.color, {})) {}
73
+ color(convertRawProp(context, rawProps, "color", sourceProps.color, {})),
74
+ weight(convertRawProp(context, rawProps, "weight", sourceProps.weight, {0})),
75
+ scale(convertRawProp(context, rawProps, "scale", sourceProps.scale, {})),
76
+ mode(convertRawProp(context, rawProps, "mode", sourceProps.mode, {})),
77
+ colorPrimary(convertRawProp(context, rawProps, "colorPrimary", sourceProps.colorPrimary, {})),
78
+ colorSecondary(convertRawProp(context, rawProps, "colorSecondary", sourceProps.colorSecondary, {})),
79
+ colorTertiary(convertRawProp(context, rawProps, "colorTertiary", sourceProps.colorTertiary, {})),
80
+ animation(convertRawProp(context, rawProps, "animation", sourceProps.animation, {})),
81
+ animationRepeating(convertRawProp(context, rawProps, "animationRepeating", sourceProps.animationRepeating, {false})),
82
+ animationRepeatCount(convertRawProp(context, rawProps, "animationRepeatCount", sourceProps.animationRepeatCount, {0})),
83
+ animationSpeed(convertRawProp(context, rawProps, "animationSpeed", sourceProps.animationSpeed, {0.0})),
84
+ animationWholeSymbol(convertRawProp(context, rawProps, "animationWholeSymbol", sourceProps.animationWholeSymbol, {false})),
85
+ animationDirection(convertRawProp(context, rawProps, "animationDirection", sourceProps.animationDirection, {})),
86
+ animationReversing(convertRawProp(context, rawProps, "animationReversing", sourceProps.animationReversing, {false})),
87
+ animationCumulative(convertRawProp(context, rawProps, "animationCumulative", sourceProps.animationCumulative, {false})) {}
74
88
 
75
89
  #ifdef RN_SERIALIZABLE_STATE
76
90
  ComponentName ReactNavigationSFSymbolViewProps::getDiffPropsImplementationTarget() const {
@@ -99,6 +113,62 @@ folly::dynamic ReactNavigationSFSymbolViewProps::getDiffProps(
99
113
  if (color != oldProps->color) {
100
114
  result["color"] = *color;
101
115
  }
116
+
117
+ if (weight != oldProps->weight) {
118
+ result["weight"] = weight;
119
+ }
120
+
121
+ if (scale != oldProps->scale) {
122
+ result["scale"] = scale;
123
+ }
124
+
125
+ if (mode != oldProps->mode) {
126
+ result["mode"] = mode;
127
+ }
128
+
129
+ if (colorPrimary != oldProps->colorPrimary) {
130
+ result["colorPrimary"] = *colorPrimary;
131
+ }
132
+
133
+ if (colorSecondary != oldProps->colorSecondary) {
134
+ result["colorSecondary"] = *colorSecondary;
135
+ }
136
+
137
+ if (colorTertiary != oldProps->colorTertiary) {
138
+ result["colorTertiary"] = *colorTertiary;
139
+ }
140
+
141
+ if (animation != oldProps->animation) {
142
+ result["animation"] = animation;
143
+ }
144
+
145
+ if (animationRepeating != oldProps->animationRepeating) {
146
+ result["animationRepeating"] = animationRepeating;
147
+ }
148
+
149
+ if (animationRepeatCount != oldProps->animationRepeatCount) {
150
+ result["animationRepeatCount"] = animationRepeatCount;
151
+ }
152
+
153
+ if ((animationSpeed != oldProps->animationSpeed) && !(std::isnan(animationSpeed) && std::isnan(oldProps->animationSpeed))) {
154
+ result["animationSpeed"] = animationSpeed;
155
+ }
156
+
157
+ if (animationWholeSymbol != oldProps->animationWholeSymbol) {
158
+ result["animationWholeSymbol"] = animationWholeSymbol;
159
+ }
160
+
161
+ if (animationDirection != oldProps->animationDirection) {
162
+ result["animationDirection"] = animationDirection;
163
+ }
164
+
165
+ if (animationReversing != oldProps->animationReversing) {
166
+ result["animationReversing"] = animationReversing;
167
+ }
168
+
169
+ if (animationCumulative != oldProps->animationCumulative) {
170
+ result["animationCumulative"] = animationCumulative;
171
+ }
102
172
  return result;
103
173
  }
104
174
  #endif
@@ -107,6 +107,20 @@ class ReactNavigationSFSymbolViewProps final : public ViewProps {
107
107
  std::string name{};
108
108
  Float size{0.0};
109
109
  SharedColor color{};
110
+ int weight{0};
111
+ std::string scale{};
112
+ std::string mode{};
113
+ SharedColor colorPrimary{};
114
+ SharedColor colorSecondary{};
115
+ SharedColor colorTertiary{};
116
+ std::string animation{};
117
+ bool animationRepeating{false};
118
+ int animationRepeatCount{0};
119
+ Float animationSpeed{0.0};
120
+ bool animationWholeSymbol{false};
121
+ std::string animationDirection{};
122
+ bool animationReversing{false};
123
+ bool animationCumulative{false};
110
124
 
111
125
  #ifdef RN_SERIALIZABLE_STATE
112
126
  ComponentName getDiffPropsImplementationTarget() const override;
@@ -1 +1 @@
1
- {"libraryName":"","modules":{"ReactNavigationMaterialSymbolView":{"type":"Component","components":{"ReactNavigationMaterialSymbolView":{"extendsProps":[{"type":"ReactNativeBuiltInType","knownTypeName":"ReactNativeCoreViewProps"}],"events":[],"props":[{"name":"name","optional":false,"typeAnnotation":{"type":"StringTypeAnnotation","default":null}},{"name":"variant","optional":true,"typeAnnotation":{"type":"StringTypeAnnotation","default":null}},{"name":"weight","optional":true,"typeAnnotation":{"type":"Int32EnumTypeAnnotation","default":0,"options":[0,100,200,300,400,500,600,700]}},{"name":"size","optional":false,"typeAnnotation":{"type":"FloatTypeAnnotation","default":0}},{"name":"color","optional":false,"typeAnnotation":{"type":"ReservedPropTypeAnnotation","name":"ColorPrimitive"}}],"commands":[]}}},"NativeMaterialSymbolModule":{"type":"NativeModule","aliasMap":{},"enumMap":{},"spec":{"eventEmitters":[],"methods":[{"name":"getImageSource","optional":false,"typeAnnotation":{"type":"FunctionTypeAnnotation","returnTypeAnnotation":{"type":"StringTypeAnnotation"},"params":[{"name":"name","optional":false,"typeAnnotation":{"type":"StringTypeAnnotation"}},{"name":"variant","optional":false,"typeAnnotation":{"type":"NullableTypeAnnotation","typeAnnotation":{"type":"StringTypeAnnotation"}}},{"name":"weight","optional":false,"typeAnnotation":{"type":"NullableTypeAnnotation","typeAnnotation":{"type":"UnionTypeAnnotation","memberType":"NumberTypeAnnotation"}}},{"name":"size","optional":false,"typeAnnotation":{"type":"NumberTypeAnnotation"}},{"name":"color","optional":false,"typeAnnotation":{"type":"GenericObjectTypeAnnotation"}}]}}]},"moduleName":"ReactNavigationMaterialSymbolModule"},"ReactNavigationSFSymbolView":{"type":"Component","components":{"ReactNavigationSFSymbolView":{"extendsProps":[{"type":"ReactNativeBuiltInType","knownTypeName":"ReactNativeCoreViewProps"}],"events":[],"props":[{"name":"name","optional":false,"typeAnnotation":{"type":"StringTypeAnnotation","default":null}},{"name":"size","optional":false,"typeAnnotation":{"type":"FloatTypeAnnotation","default":0}},{"name":"color","optional":false,"typeAnnotation":{"type":"ReservedPropTypeAnnotation","name":"ColorPrimitive"}}],"commands":[]}}}}}
1
+ {"libraryName":"","modules":{"ReactNavigationMaterialSymbolView":{"type":"Component","components":{"ReactNavigationMaterialSymbolView":{"extendsProps":[{"type":"ReactNativeBuiltInType","knownTypeName":"ReactNativeCoreViewProps"}],"events":[],"props":[{"name":"name","optional":false,"typeAnnotation":{"type":"StringTypeAnnotation","default":null}},{"name":"variant","optional":true,"typeAnnotation":{"type":"StringTypeAnnotation","default":null}},{"name":"weight","optional":true,"typeAnnotation":{"type":"Int32EnumTypeAnnotation","default":0,"options":[0,100,200,300,400,500,600,700]}},{"name":"size","optional":false,"typeAnnotation":{"type":"FloatTypeAnnotation","default":0}},{"name":"color","optional":false,"typeAnnotation":{"type":"ReservedPropTypeAnnotation","name":"ColorPrimitive"}}],"commands":[]}}},"NativeMaterialSymbolModule":{"type":"NativeModule","aliasMap":{},"enumMap":{},"spec":{"eventEmitters":[],"methods":[{"name":"getImageSource","optional":false,"typeAnnotation":{"type":"FunctionTypeAnnotation","returnTypeAnnotation":{"type":"StringTypeAnnotation"},"params":[{"name":"name","optional":false,"typeAnnotation":{"type":"StringTypeAnnotation"}},{"name":"variant","optional":false,"typeAnnotation":{"type":"NullableTypeAnnotation","typeAnnotation":{"type":"StringTypeAnnotation"}}},{"name":"weight","optional":false,"typeAnnotation":{"type":"NullableTypeAnnotation","typeAnnotation":{"type":"UnionTypeAnnotation","memberType":"NumberTypeAnnotation"}}},{"name":"size","optional":false,"typeAnnotation":{"type":"NumberTypeAnnotation"}},{"name":"color","optional":false,"typeAnnotation":{"type":"GenericObjectTypeAnnotation"}}]}}]},"moduleName":"ReactNavigationMaterialSymbolModule"},"ReactNavigationSFSymbolView":{"type":"Component","components":{"ReactNavigationSFSymbolView":{"extendsProps":[{"type":"ReactNativeBuiltInType","knownTypeName":"ReactNativeCoreViewProps"}],"events":[],"props":[{"name":"name","optional":false,"typeAnnotation":{"type":"StringTypeAnnotation","default":null}},{"name":"size","optional":false,"typeAnnotation":{"type":"FloatTypeAnnotation","default":0}},{"name":"color","optional":true,"typeAnnotation":{"type":"ReservedPropTypeAnnotation","name":"ColorPrimitive"}},{"name":"weight","optional":false,"typeAnnotation":{"type":"Int32TypeAnnotation","default":0}},{"name":"scale","optional":false,"typeAnnotation":{"type":"StringTypeAnnotation","default":null}},{"name":"mode","optional":false,"typeAnnotation":{"type":"StringTypeAnnotation","default":null}},{"name":"colorPrimary","optional":true,"typeAnnotation":{"type":"ReservedPropTypeAnnotation","name":"ColorPrimitive"}},{"name":"colorSecondary","optional":true,"typeAnnotation":{"type":"ReservedPropTypeAnnotation","name":"ColorPrimitive"}},{"name":"colorTertiary","optional":true,"typeAnnotation":{"type":"ReservedPropTypeAnnotation","name":"ColorPrimitive"}},{"name":"animation","optional":false,"typeAnnotation":{"type":"StringTypeAnnotation","default":null}},{"name":"animationRepeating","optional":false,"typeAnnotation":{"type":"BooleanTypeAnnotation","default":false}},{"name":"animationRepeatCount","optional":false,"typeAnnotation":{"type":"Int32TypeAnnotation","default":0}},{"name":"animationSpeed","optional":false,"typeAnnotation":{"type":"FloatTypeAnnotation","default":0}},{"name":"animationWholeSymbol","optional":false,"typeAnnotation":{"type":"BooleanTypeAnnotation","default":false}},{"name":"animationDirection","optional":false,"typeAnnotation":{"type":"StringTypeAnnotation","default":null}},{"name":"animationReversing","optional":false,"typeAnnotation":{"type":"BooleanTypeAnnotation","default":false}},{"name":"animationCumulative","optional":false,"typeAnnotation":{"type":"BooleanTypeAnnotation","default":false}}],"commands":[]}}}}}
@@ -31,32 +31,38 @@ class MaterialSymbolView @JvmOverloads constructor(
31
31
 
32
32
  fun setName(name: String) {
33
33
  text = name
34
+
35
+ invalidate()
34
36
  }
35
37
 
36
38
  fun setVariant(variant: String) {
37
- val resolvedVariant = variant.ifEmpty { null }
38
-
39
- if (this.variant == resolvedVariant) {
39
+ if (this.variant == variant) {
40
40
  return
41
41
  }
42
42
 
43
- this.variant = resolvedVariant
43
+ this.variant = variant
44
+
44
45
  updateTypeface()
45
46
  }
46
47
 
47
48
  fun setWeight(weight: Int) {
48
- val resolvedWeight = weight.takeIf { it != 0 }
49
-
50
- if (this.weight == resolvedWeight) {
49
+ if (this.weight == weight) {
51
50
  return
52
51
  }
53
52
 
54
- this.weight = resolvedWeight
53
+ this.weight = weight
54
+
55
55
  updateTypeface()
56
56
  }
57
57
 
58
58
  private fun updateTypeface() {
59
- setTypeface(MaterialSymbolTypeface.get(context, variant, weight).typeface)
59
+ setTypeface(
60
+ MaterialSymbolTypeface.get(
61
+ context,
62
+ variant?.ifEmpty { null },
63
+ weight.takeIf { it != 0 }).typeface
64
+ )
65
+
60
66
  invalidate()
61
67
  }
62
68
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-navigation/native",
3
3
  "description": "React Native integration for React Navigation",
4
- "version": "8.0.0-alpha.4",
4
+ "version": "8.0.0-alpha.5",
5
5
  "keywords": [
6
6
  "react-native",
7
7
  "react-navigation",
@@ -107,5 +107,5 @@
107
107
  }
108
108
  }
109
109
  },
110
- "gitHead": "cd1c673cd6b8f43b992b76e8ed6cf6c5c85bdd6c"
110
+ "gitHead": "e70fcf951732df83d28fe5157408974346a1abbc"
111
111
  }