Skip to content

@uservane/react-native: UserVaneContextValue

UserVaneContextValue = object

Defined in: @uservane+react-native@0.1.0_react-native@0.86.0_@babel+core@7.29.7_@types+react@18.3.31_react@19.2.3__react@19.2.3/node_modules/@uservane/react-native/dist/index.d.ts:18

active: ActiveSurvey | null

Defined in: @uservane+react-native@0.1.0_react-native@0.86.0_@babel+core@7.29.7_@types+react@18.3.31_react@19.2.3__react@19.2.3/node_modules/@uservane/react-native/dist/index.d.ts:27

Currently visible survey, if any. Null when nothing is showing.


apiBase: string | undefined

Defined in: @uservane+react-native@0.1.0_react-native@0.86.0_@babel+core@7.29.7_@types+react@18.3.31_react@19.2.3__react@19.2.3/node_modules/@uservane/react-native/dist/index.d.ts:20


apiKey: string

Defined in: @uservane+react-native@0.1.0_react-native@0.86.0_@babel+core@7.29.7_@types+react@18.3.31_react@19.2.3__react@19.2.3/node_modules/@uservane/react-native/dist/index.d.ts:19


complete: (result) => void

Defined in: @uservane+react-native@0.1.0_react-native@0.86.0_@babel+core@7.29.7_@types+react@18.3.31_react@19.2.3__react@19.2.3/node_modules/@uservane/react-native/dist/index.d.ts:31

Complete with rating (and optional free-text / follow-up request).

boolean

number

string

void


debug: boolean | undefined

Defined in: @uservane+react-native@0.1.0_react-native@0.86.0_@babel+core@7.29.7_@types+react@18.3.31_react@19.2.3__react@19.2.3/node_modules/@uservane/react-native/dist/index.d.ts:21


dismiss: () => void

Defined in: @uservane+react-native@0.1.0_react-native@0.86.0_@babel+core@7.29.7_@types+react@18.3.31_react@19.2.3__react@19.2.3/node_modules/@uservane/react-native/dist/index.d.ts:29

Dismiss without submitting a rating.

void


identify: (opts) => void

Defined in: @uservane+react-native@0.1.0_react-native@0.86.0_@babel+core@7.29.7_@types+react@18.3.31_react@19.2.3__react@19.2.3/node_modules/@uservane/react-native/dist/index.d.ts:25

Identify the respondent; re-bootstraps for server suppression + tokens.

IdentifyOptions

void


survey: (slug) => void

Defined in: @uservane+react-native@0.1.0_react-native@0.86.0_@babel+core@7.29.7_@types+react@18.3.31_react@19.2.3__react@19.2.3/node_modules/@uservane/react-native/dist/index.d.ts:23

Imperative survey trigger by slug. Buffers until bootstrap completes.

string

void