ActionSheet for React NativeActionSheet for React Native
/
GitHubGitHub
/
  • Introduction
  • Installation
  • Basic usage
  • Guides
    • Usage with SheetManager
    • Passing data to ActionSheet
    • Using ActionSheet Router
    • Returning results from ActionSheet
    • Ref access from anywhere
    • Using ScrollView
    • Background Interaction
    • Position tracking
    • Handling SafeArea
    • Migrating to v0.8.0
  • Reference
    • ActionSheet props
    • ActionSheetRef
    • SheetManager
    • SheetProps
    • SheetProvider
    • useScrollHandlers
    • registerSheet
    • ShowOptions
    • HideOptions
    • useRouter
    • useSheetRouteParams
    • useSheetIDContext
    • useProviderContext
    • Route
  • Introduction
  • Installation
  • Basic usage
  • Guides
    • Usage with SheetManager
    • Passing data to ActionSheet
    • Using ActionSheet Router
    • Returning results from ActionSheet
    • Ref access from anywhere
    • Using ScrollView
    • Background Interaction
    • Position tracking
    • Handling SafeArea
    • Migrating to v0.8.0
  • Reference
    • ActionSheet props
    • ActionSheetRef
    • SheetManager
    • SheetProps
    • SheetProvider
    • useScrollHandlers
    • registerSheet
    • ShowOptions
    • HideOptions
    • useRouter
    • useSheetRouteParams
    • useSheetIDContext
    • useProviderContext
    • Route
Edit this page on GitHub
Guides
Ref access from anywhere

Ref access from anywhere

You can access the ActionSheetRef from anywhere in the app using SheetManager.

SheetManager.get("example-sheet").snapToOffset(50);

You can also get ref of an action sheet in a specific SheetProvider.

SheetManager.get("example-sheet", "local-context").snapToOffset(50);
Returning results from ActionSheet
Using ScrollView
MIT 2023 © Ammar Ahmed.