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
import React from "react"; | |
import { Federated } from "@callstack/repack/client"; | |
import { ActivityIndicator, StyleSheet, View } from "react-native"; | |
const MiniAppNavigator = React.lazy(() => | |
Federated.importModule("MiniApp", "./MiniAppNavigator") | |
); | |
const FallbackComponent = () => ( | |
<View style={styles.container}> |
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
git clone https://github.com/callstack/super-app-example.git |
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
import React from "react"; | |
import { Federated } from "@callstack/repack/client"; | |
import { ActivityIndicator, StyleSheet, View } from "react-native"; | |
const MiniAppNavigator = React.lazy(() => | |
Federated.importModule("MiniApp", "./MiniAppNavigator") | |
); | |
const FallbackComponent = () => ( | |
<View style={styles.container}> |
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
import { ScriptManager, Federated } from "@callstack/repack/client"; | |
ScriptManager.shared.addResolver(async (scriptId, caller) => { | |
const resolveURL = Federated.createURLResolver({ | |
containers: { | |
MiniApp: "http://localhost:9000/[name][ext]", | |
}, | |
}); | |
const url = resolveURL(scriptId, caller); |
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
react { | |
bundleCommand = "webpack-bundle" | |
} |
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
adb reverse tcp:9000 tcp:9000 |
NewerOlder