@applicaster/zapp-react-native-utils 12.0.0-rc.15 → 12.0.0-rc.17
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/cellUtils/index.ts +5 -0
- package/package.json +2 -2
package/cellUtils/index.ts
CHANGED
|
@@ -343,6 +343,11 @@ export const ifElseFocused = R.curry(
|
|
|
343
343
|
state === "focused" ? focusedValue : defaultValue
|
|
344
344
|
);
|
|
345
345
|
|
|
346
|
+
export const ifElseSelected = R.curry(
|
|
347
|
+
(state: string, selectedValue, defaultValue) =>
|
|
348
|
+
state === "selected" ? selectedValue : defaultValue
|
|
349
|
+
);
|
|
350
|
+
|
|
346
351
|
/**
|
|
347
352
|
* Map textAlign values to their corresponding alignSelf values
|
|
348
353
|
* This is so that we could use the same field for both properties
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-utils",
|
|
3
|
-
"version": "12.0.0-rc.
|
|
3
|
+
"version": "12.0.0-rc.17",
|
|
4
4
|
"description": "Applicaster Zapp React Native utilities package",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/applicaster-types": "12.0.0-rc.
|
|
31
|
+
"@applicaster/applicaster-types": "12.0.0-rc.17",
|
|
32
32
|
"buffer": "^5.2.1",
|
|
33
33
|
"camelize": "^1.0.0",
|
|
34
34
|
"create-react-context": "^0.2.3",
|