ordering-ui-react-native 0.15.60 → 0.15.61

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.15.60",
3
+ "version": "0.15.61",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -34,7 +34,8 @@ export const AppleLogin = (props: any) => {
34
34
  method: 'POST',
35
35
  headers: { 'Content-Type': 'application/json' },
36
36
  body: JSON.stringify({
37
- code: code
37
+ code: code,
38
+ platform: Platform.OS === 'ios' ? 'ios' : 'other'
38
39
  })
39
40
  })
40
41
  const { result, error } = await response.json()
@@ -44,7 +45,7 @@ export const AppleLogin = (props: any) => {
44
45
  handleLoading && handleLoading(false)
45
46
  }
46
47
  } else {
47
- showToast(ToastType.Error, `Error login on apple from api Code: ${code}`, 10000)
48
+ showToast(ToastType.Error, `Error login on apple from api Code: ${code} ${Platform.OS}`, 10000)
48
49
  handleLoading && handleLoading(false)
49
50
  }
50
51
  } catch (err: any) {