This file contains hidden or 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
import ShopAPI from './ShopAPIPlugin'; | |
import Portals from '@ionic/portals'; | |
const App: React.FC<InitialContext> = () => { | |
const [sessionInfo, setSession] = useState(null); | |
const [startingRoute, setInitialRoute] = useState(null); | |
useEffect(() => { | |
const [context, sessionInfo] = await Promise.all([ | |
Portals.getInitialContext(), |
This file contains hidden or 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
# Instructions on how to download an App Bundle from AppFlow | |
# | |
# | |
# Setup auth first: https://ionic.io/docs/appflow/cli/overview#authentication | |
# | |
# Environment variables | |
# | |
# APP_ID (IE 186b544f) | |
# CHANNEL (IE production) | |
# PORTAL_NAME (IE checkout) |
This file contains hidden or 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
# Type a script or drag a script file from your workspace to insert # Type a script or drag a script file from your workspace to insert its path. | |
# SRCROOT | |
# TARGET_NAME | |
# BUILT_PRODUCTS_DIR | |
APP_NAME="shopwebapp" | |
EMBEDDED_DIR="${BUILT_PRODUCTS_DIR}/${TARGET_NAME}.app/portals" | |
EMBEDDED_APP="${SRCROOT}/../../web/build" | |
ZIP_FILE="${APP_NAME}.zip" | |
mkdir "${EMBEDDED_DIR}" |
This file contains hidden or 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
import { GoogleMap } from '@capacitor/google-maps'; | |
const MyMap: React.FC = () => { | |
return ( | |
<div className="component-wrapper"> | |
<GoogleMap | |
apiKey={process.env.REACT_APP_YOUR_API_KEY_HERE} | |
config={{ | |
center: { |
OlderNewer