@uservane/react-native: UserVaneContextValue
Type Alias: UserVaneContextValue
Section titled “Type Alias: UserVaneContextValue”UserVaneContextValue =
object
Defined in: @[email protected]_react-native@0.86.0_@[email protected]_@[email protected]_react@[email protected]/node_modules/@uservane/react-native/dist/index.d.ts:18
Properties
Section titled “Properties”active
Section titled “active”active:
ActiveSurvey|null
Defined in: @[email protected]_react-native@0.86.0_@[email protected]_@[email protected]_react@[email protected]/node_modules/@uservane/react-native/dist/index.d.ts:27
Currently visible survey, if any. Null when nothing is showing.
apiBase
Section titled “apiBase”apiBase:
string|undefined
Defined in: @[email protected]_react-native@0.86.0_@[email protected]_@[email protected]_react@[email protected]/node_modules/@uservane/react-native/dist/index.d.ts:20
apiKey
Section titled “apiKey”apiKey:
string
Defined in: @[email protected]_react-native@0.86.0_@[email protected]_@[email protected]_react@[email protected]/node_modules/@uservane/react-native/dist/index.d.ts:19
complete
Section titled “complete”complete: (
result) =>void
Defined in: @[email protected]_react-native@0.86.0_@[email protected]_@[email protected]_react@[email protected]/node_modules/@uservane/react-native/dist/index.d.ts:31
Complete with rating (and optional free-text / follow-up request).
Parameters
Section titled “Parameters”result
Section titled “result”followUpRequested?
Section titled “followUpRequested?”boolean
rating
Section titled “rating”number
string
Returns
Section titled “Returns”void
debug:
boolean|undefined
Defined in: @[email protected]_react-native@0.86.0_@[email protected]_@[email protected]_react@[email protected]/node_modules/@uservane/react-native/dist/index.d.ts:21
dismiss
Section titled “dismiss”dismiss: () =>
void
Defined in: @[email protected]_react-native@0.86.0_@[email protected]_@[email protected]_react@[email protected]/node_modules/@uservane/react-native/dist/index.d.ts:29
Dismiss without submitting a rating.
Returns
Section titled “Returns”void
identify
Section titled “identify”identify: (
opts) =>void
Defined in: @[email protected]_react-native@0.86.0_@[email protected]_@[email protected]_react@[email protected]/node_modules/@uservane/react-native/dist/index.d.ts:25
Identify the respondent; re-bootstraps for server suppression + tokens.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
survey
Section titled “survey”survey: (
slug) =>void
Defined in: @[email protected]_react-native@0.86.0_@[email protected]_@[email protected]_react@[email protected]/node_modules/@uservane/react-native/dist/index.d.ts:23
Imperative survey trigger by slug. Buffers until bootstrap completes.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void