Skip to content

getSchemeUri ​

Returns the scheme value when first entering the screen. URI changes due to page navigation are not reflected.

Signature ​

typescript
function getSchemeUri(): string;

Return Value ​

  • string

    Returns the scheme value when first entering the screen.

Example ​

Get initial scheme value ​

tsx
import { getSchemeUri } from '@granite-js/react-native';
import { Text } from 'react-native';

function MyPage() {
  const schemeUri = getSchemeUri();

  return <Text>Initial scheme value: {schemeUri}</Text>;
}