-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Polish and fix React and Vue on Capacitor
- Loading branch information
Matt Raible
committed
Aug 25, 2022
1 parent
dba79a7
commit 69d0af1
Showing
25 changed files
with
636 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import React from 'react'; | ||
import { IonCard, IonCardHeader, IonCardContent } from '@ionic/react'; | ||
|
||
export const ActionCard = (props : any) => { | ||
export const ActionCard = (props: any) => { | ||
|
||
return ( | ||
<IonCard> | ||
<IonCardHeader>Action Data</IonCardHeader> | ||
<IonCardContent> | ||
{JSON.stringify(props.action) } | ||
</IonCardContent> | ||
</IonCard> | ||
); | ||
} | ||
return ( | ||
<IonCard> | ||
<IonCardHeader>Action Data</IonCardHeader> | ||
<IonCardContent> | ||
{JSON.stringify(props.action)} | ||
</IonCardContent> | ||
</IonCard> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
69d0af1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! Why using CapacitorService on IOS plateform?
69d0af1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why shouldn't we? It works on both iOS and Android and is recommended by the Ionic folks.
69d0af1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant why using CapacitorService only for IOS (and not Android):
const requestor = isPlatform('ios') ? new CapacitorRequestor() : new AxiosRequestor();
69d0af1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't recall since I committed this almost six months ago. It's done the way it is most likely because it was the only way I was able to get things to work.