ordering-ui-react-native 0.17.30 → 0.17.31

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": "ordering-ui-react-native",
3
- "version": "0.17.30",
3
+ "version": "0.17.31",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -602,7 +602,7 @@ const AddressFormUI = (props: AddressFormParams) => {
602
602
  {(
603
603
  ((!isEditing && !isGuestUser && !formState.changes?.address) ||
604
604
  (isEditing && !isGuestUser && !formState.changes?.address && formState.changes?.address !== undefined)) ||
605
- (isGuestUser && !formState.changes?.address && formState.changes?.address !== undefined)) &&
605
+ (isGuestUser && !formState.changes?.address)) &&
606
606
  (
607
607
  <View style={styles.pinIcon}>
608
608
  <GPSButton
@@ -362,7 +362,7 @@ const BusinessProductsListingUI = (props: BusinessProductsListingParams) => {
362
362
  </FiltProductsContainer>
363
363
  )}
364
364
  {isOpenFiltProducts && (
365
- <BackgroundGray />
365
+ <BackgroundGray isIos={Platform.OS === 'ios'} />
366
366
  )}
367
367
  <IOScrollView
368
368
  stickyHeaderIndices={[business?.professionals?.length > 0 ? 3 : 2]}
@@ -38,16 +38,16 @@ export const FiltProductsContainer = styled.ScrollView`
38
38
  position: absolute;
39
39
  width: 100%;
40
40
  z-index: 2000;
41
- top: ${(props : any) => props.isIos ? '40px': '80px'};
41
+ top: 80px;
42
42
  margin-top: 20px;
43
43
  `
44
44
 
45
45
  export const BackgroundGray = styled.View`
46
46
  flex: 1;
47
- height: 100%;
47
+ height: ${(props: any) => props.isIos ? '80%' : '100%'};
48
48
  background-color: rgba(0,0,0,0.5);
49
- position: absolute;
50
- margin-top: 100px;
49
+ position: absolute;
50
+ margin-top: 100px;
51
51
  z-index: 100;
52
52
  width: 100%;
53
53
  `