@applicaster/zapp-react-native-utils 16.0.0-alpha.2320942372 → 16.0.0-alpha.2628821467
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.
|
|
3
|
+
"version": "16.0.0-alpha.2628821467",
|
|
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.
|
|
30
|
+
"@applicaster/applicaster-types": "16.0.0-alpha.2628821467",
|
|
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,
|
|
2
|
+
import { NativeModules, 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,12 +30,6 @@ 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
|
-
|
|
39
33
|
const { Logger } = getXray();
|
|
40
34
|
|
|
41
35
|
const logger = new Logger("general", "ui");
|
|
@@ -139,9 +133,7 @@ export const ScreenLoadingMeasurements = ({
|
|
|
139
133
|
|
|
140
134
|
return (
|
|
141
135
|
<MeasurementsSettersContext.Provider value={contextValue}>
|
|
142
|
-
<View
|
|
143
|
-
{children}
|
|
144
|
-
</View>
|
|
136
|
+
<View onLayout={onListLayout}>{children}</View>
|
|
145
137
|
</MeasurementsSettersContext.Provider>
|
|
146
138
|
);
|
|
147
139
|
};
|
|
@@ -152,9 +144,5 @@ export const ScreenLoadingMeasurementsListItemWrapper = ({
|
|
|
152
144
|
}: ItemProps) => {
|
|
153
145
|
const { onLayout } = React.useContext(MeasurementsSettersContext);
|
|
154
146
|
|
|
155
|
-
return (
|
|
156
|
-
<View style={styles.container} onLayout={onLayout?.(index)}>
|
|
157
|
-
{children}
|
|
158
|
-
</View>
|
|
159
|
-
);
|
|
147
|
+
return <View onLayout={onLayout?.(index)}>{children}</View>;
|
|
160
148
|
};
|