@applicaster/zapp-react-native-utils 16.0.0-alpha.5365234026 → 16.0.0-alpha.5402127570

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": "@applicaster/zapp-react-native-utils",
3
- "version": "16.0.0-alpha.5365234026",
3
+ "version": "16.0.0-alpha.5402127570",
4
4
  "description": "Applicaster Zapp React Native utilities package",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/applicaster/quickbrick#readme",
29
29
  "dependencies": {
30
- "@applicaster/applicaster-types": "16.0.0-alpha.5365234026",
30
+ "@applicaster/applicaster-types": "16.0.0-alpha.5402127570",
31
31
  "buffer": "^5.2.1",
32
32
  "camelize": "^1.0.0",
33
33
  "dayjs": "^1.11.10",
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { NativeModules, View } from "react-native";
2
+ import { NativeModules, StyleSheet, View } from "react-native";
3
3
  import { getXray } from "@applicaster/zapp-react-native-utils/logger";
4
4
 
5
5
  import { isApplePlatform, isWeb } from "../reactUtils";
@@ -30,6 +30,12 @@ type MeasurementContext = {
30
30
  onLayout: (index: number) => (event) => void;
31
31
  };
32
32
 
33
+ const styles = StyleSheet.create({
34
+ container: {
35
+ flex: 1,
36
+ },
37
+ });
38
+
33
39
  const { Logger } = getXray();
34
40
 
35
41
  const logger = new Logger("general", "ui");
@@ -133,7 +139,9 @@ export const ScreenLoadingMeasurements = ({
133
139
 
134
140
  return (
135
141
  <MeasurementsSettersContext.Provider value={contextValue}>
136
- <View onLayout={onListLayout}>{children}</View>
142
+ <View style={styles.container} onLayout={onListLayout}>
143
+ {children}
144
+ </View>
137
145
  </MeasurementsSettersContext.Provider>
138
146
  );
139
147
  };
@@ -144,5 +152,9 @@ export const ScreenLoadingMeasurementsListItemWrapper = ({
144
152
  }: ItemProps) => {
145
153
  const { onLayout } = React.useContext(MeasurementsSettersContext);
146
154
 
147
- return <View onLayout={onLayout?.(index)}>{children}</View>;
155
+ return (
156
+ <View style={styles.container} onLayout={onLayout?.(index)}>
157
+ {children}
158
+ </View>
159
+ );
148
160
  };