import App from "./App";
import { Text, TextInput } from "react-native";
import registerRootComponent from "expo/build/launch/registerRootComponent";
if (Text.defaultProps == null) {
Text.defaultProps = {};
Text.defaultProps.allowFontScaling = false;
}
if (TextInput.defaultProps == null) {
TextInput.defaultProps = {};
TextInput.defaultProps.allowFontScaling = false;
}
registerRootComponent(App);
index.share.js
import { AppRegistry } from "react-native";
// could be any component you want to use as the root component of your share extension's bundle
import ShareExtension from "./ShareExtension";
// IMPORTANT: the first argument to registerComponent, must be "shareExtension"
AppRegistry.registerComponent("shareExtension", () => ShareExtension);
Info:
IOS: 18.1, i has tried ios 17.5 too
ShareExtension.tsx
index.js
index.share.js
app.json
if you need something more, let me know :)