diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad462ee..802407a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -106,6 +106,12 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Publish @chativa/rn-webview + run: pnpm publish --access public --no-git-checks + working-directory: packages/rn-webview + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: diff --git a/.gitignore b/.gitignore index 9d5dfd9..2c13955 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ lerna-debug.log* node_modules dist dist-ssr +lib *.local # Docusaurus diff --git a/examples/rn-webview-expo/.gitignore b/examples/rn-webview-expo/.gitignore new file mode 100644 index 0000000..d914c32 --- /dev/null +++ b/examples/rn-webview-expo/.gitignore @@ -0,0 +1,41 @@ +# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files + +# dependencies +node_modules/ + +# Expo +.expo/ +dist/ +web-build/ +expo-env.d.ts + +# Native +.kotlin/ +*.orig.* +*.jks +*.p8 +*.p12 +*.key +*.mobileprovision + +# Metro +.metro-health-check* + +# debug +npm-debug.* +yarn-debug.* +yarn-error.* + +# macOS +.DS_Store +*.pem + +# local env files +.env*.local + +# typescript +*.tsbuildinfo + +# generated native folders +/ios +/android diff --git a/examples/rn-webview-expo/App.tsx b/examples/rn-webview-expo/App.tsx new file mode 100644 index 0000000..940038d --- /dev/null +++ b/examples/rn-webview-expo/App.tsx @@ -0,0 +1,81 @@ +import { useRef } from "react"; +import { Button, SafeAreaView, StyleSheet, Text, View } from "react-native"; +import { StatusBar } from "expo-status-bar"; +import { ChativaWebView, sendToChativaWebView } from "@chativa/rn-webview"; +import type WebView from "react-native-webview"; + +export default function App() { + const webViewRef = useRef(null); + + return ( + + + @chativa/rn-webview example + + ChativaWebView embeds the same web widget used by @chativa/react — + the connector runs entirely inside the WebView's own browser + engine, so DummyConnector (and any @chativa/connector-* package) + works completely unmodified. + + +