Effects React Native
Effects / Guides / Runtime parameters / React Native

Control Nosmai effect parameters in React Native

Updated August 27, 2026

Build typed React Native controls from active effect package metadata, update numeric or text values, and avoid package-specific assumptions.

Prerequisites

Read the authored controls

Query the typed metadata after package application:

const parameters = await NosmaiCameraSdk.getEffectParameters();

for (const parameter of parameters) {
  console.log(parameter.displayName, parameter.type, parameter.currentValue);
}

NosmaiEffectParameter includes the authored name and type, current and default values, optional numeric range, option list, display name, and description.

Update a value

Use an exact name returned for the active package:

const updated = await NosmaiCameraSdk.setEffectParameter(
  'AUTHORED_PARAMETER_NAME',
  0.5
);

const textUpdated = await NosmaiCameraSdk.setEffectParameterString(
  'AUTHORED_TEXT_PARAMETER_NAME',
  'Hello'
);

The JavaScript boundary rejects empty names, non-finite numbers, control characters in names, and line breaks in string values before calling native code. Clamp numeric UI input to the authored range.

Verify the update

Read a numeric control through getEffectParameterValue and confirm the processed view changes without remounting NosmaiCameraView. Query metadata again after selecting a different package.

Common errors

Error or symptomCauseFix
The parameter list is emptyNo compatible package is active, or it declares no controlsApply the intended package successfully, then query again
The update resolves falseThe native package rejected the name or value typeUse the exact returned name and matching numeric or string setter
E_INVALID_ARGUMENTThe name or value failed JavaScript validationPass a non-empty authored name and a finite single-line value

Next steps

References

Nosmai

An AR and AI company. Founded on the idea that the next decade of software will be visual, and that the tools for it should be within reach of anyone building.

Newsletter

Product updates and release notes. No spam.

© 2026 nosmai, inc · all rights reserved