mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-10-30 18:34:19 +00:00
* fix(react-native): honor appearance.position in SurveyModal The modal layout was hard-coded to bottom-center, so the `position` field was ignored regardless of what the survey was configured with. Wire it through to the flex alignment so all 9 `SurveyPosition` values render correctly, mirroring the web SDK semantics: `top_*` anchors to the top edge, `middle_*` to the vertical middle, and `left` / `center` / `right` (no prefix) to the bottom edge. Note: the documented default `SurveyPosition.Right` now actually applies. Surveys without an explicit position will move from bottom-center (the previous accidental default) to bottom-right. Also modified so keyboard activation doesn't hide textfield or push content off screen Closes #3497