first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

45
node_modules/expo-router/build/native-tabs/hooks.d.ts generated vendored Normal file
View File

@@ -0,0 +1,45 @@
export declare const BottomAccessoryPlacementContext: import("react").Context<"regular" | "inline" | undefined>;
/**
* A hook which returns the bottom accessory environment for given component.
*
* Note, that there can be two copies of the same component rendered for different environments.
* The hook will ensure that component with correct environment is displayed.
*
* Because two instances of the component will exist simultaneously, **any state kept
* inside the component will not be shared between the regular and inline versions**.
* If your accessory needs synchronized or persistent state you must store that state
* outside of bottom accessory component (e.g. passing via props or using context).
*
* Don't pass the environment obtained using this hook up the tree.
*
* @example
*
* ```tsx
* import { NativeTabs } from 'expo-router/unstable-native-tabs';
*
* // This component will have two copies rendered, one for `inline` and one for `regular` environment
* function AccessoryContent(props) {
* const placement = NativeTabs.BottomAccessory.usePlacement();
* if (placement === 'inline') {
* return <InlineAccessoryComponent {...props} />;
* }
* return <RegularAccessoryComponent {...props} />;
* }
*
* export default function Layout(){
* const [isPlaying, setIsPlaying] = useState(false);
* return (
* <NativeTabs>
* <NativeTabs.BottomAccessory>
* <AccessoryContent isPlaying={isPlaying} setIsPlaying={setIsPlaying} />
* </NativeTabs.BottomAccessory>
* <NativeTabs.Trigger name="index" />
* </NativeTabs>
* );
* }
* ```
*
* @platform iOS 26+
*/
export declare const usePlacement: () => "regular" | "inline";
//# sourceMappingURL=hooks.d.ts.map