@timpel/forumkit-sdk-react-native 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7424,15 +7424,24 @@ function RootNavigator() {
7424
7424
  border: tokens.border
7425
7425
  }
7426
7426
  }), [mode, tokens]);
7427
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_native11.NavigationContainer, { theme: navTheme, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Stack.Navigator, { screenOptions: { headerShown: false, statusBarTranslucent: true }, children: [
7428
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Stack.Screen, { name: "Feed", component: FeedScreen }),
7429
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Stack.Screen, { name: "Thread", component: ThreadScreen, options: { animation: "none" } }),
7430
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Stack.Screen, { name: "Profile", component: ProfileScreen }),
7431
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Stack.Screen, { name: "Search", component: SearchScreen }),
7432
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Stack.Screen, { name: "SearchInput", component: SearchInputScreen, options: { headerShown: false } }),
7433
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Stack.Screen, { name: "AskResult", component: AskResultScreen, options: { headerShown: false } }),
7434
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Stack.Screen, { name: "Moderation", component: ModerationScreen })
7435
- ] }) });
7427
+ return (
7428
+ // ForumKit is embedded inside a host app's own component tree, which in
7429
+ // virtually every real RN app already has its own NavigationContainer at
7430
+ // its root (see fix commit for the psos-app crash this addresses:
7431
+ // "Looks like you have nested a 'NavigationContainer' inside another").
7432
+ // NavigationIndependentTree marks this container as deliberately
7433
+ // self-contained — its own back stack, its own everything, no state
7434
+ // shared with (or visible to) whatever navigator the host already has.
7435
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_native11.NavigationIndependentTree, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_native11.NavigationContainer, { theme: navTheme, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Stack.Navigator, { screenOptions: { headerShown: false, statusBarTranslucent: true }, children: [
7436
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Stack.Screen, { name: "Feed", component: FeedScreen }),
7437
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Stack.Screen, { name: "Thread", component: ThreadScreen, options: { animation: "none" } }),
7438
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Stack.Screen, { name: "Profile", component: ProfileScreen }),
7439
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Stack.Screen, { name: "Search", component: SearchScreen }),
7440
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Stack.Screen, { name: "SearchInput", component: SearchInputScreen, options: { headerShown: false } }),
7441
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Stack.Screen, { name: "AskResult", component: AskResultScreen, options: { headerShown: false } }),
7442
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Stack.Screen, { name: "Moderation", component: ModerationScreen })
7443
+ ] }) }) })
7444
+ );
7436
7445
  }
7437
7446
 
7438
7447
  // src/ForumKit.tsx