npm react-native-adapty 4.2.0
v4.2.0

3 hours ago

v4.2.0

✨ New Features

A/B test variation name on flows

AdaptyFlow now has variationName — the name of the A/B test variation the user was assigned to, next to the existing variationId. Send it to your product analytics (Mixpanel, Amplitude, …) instead of mapping variation ids by hand.

import { adapty } from 'react-native-adapty';

const flow = await adapty.getFlow('YOUR_PLACEMENT_ID');

analytics.track('flow_shown', {
  variation_id: flow.variationId,
  variation_name: flow.variationName, 
});

🐛 Fixes

  • (iOS) A flow could crash when its script produced NaN or an infinite number.
  • (iOS) A flow footer background was drawn even when the flow disabled it.
  • (iOS) A flow text lost its weight when its font was resolved by family, so semibold and bold text rendered as regular.

❗️ Don't forget to update your local fallback file

Don't miss a new react-native-adapty release

NewReleases is sending notifications on new releases.