Skip to content

Handle missing react-native-safe-area-context in ScreenFooter screen#3941

Open
adids1221 wants to merge 3 commits intomasterfrom
fix/screen_footer_missing_safe_area_dependency
Open

Handle missing react-native-safe-area-context in ScreenFooter screen#3941
adids1221 wants to merge 3 commits intomasterfrom
fix/screen_footer_missing_safe_area_dependency

Conversation

@adids1221
Copy link
Contributor

@adids1221 adids1221 commented Feb 24, 2026

Description

Fixes crash in ScreenFooterScreen demo when react-native-safe-area-context is not installed.
Replaced the direct import with a try/catch require and added a fallback screen with install instructions.
Fixed a circular import in ScreenFooter (import {Image} from 'react-native-ui-lib'import Image from '../image') that broke the barrel export when the optional dependency was missing.

Changelog

ScreenFooterScreen - Gracefully handle missing react-native-safe-area-context dependency.

Additional info

N/A

@github-actions
Copy link
Contributor

github-actions bot commented Feb 24, 2026

✅ PR Description Validation Passed

All required sections are properly filled out:

  • Description
  • Changelog
  • Additional info

Your PR is good for review! 🚀


This validation ensures all sections from the PR template are properly filled.

Copy link
Collaborator

@M-i-k-e-l M-i-k-e-l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does solve the require issue, however when the screen is selected and react-native-safe-area-context is not installed there is a red screen

@M-i-k-e-l M-i-k-e-l assigned adids1221 and unassigned M-i-k-e-l Mar 3, 2026
@adids1221 adids1221 requested a review from M-i-k-e-l March 9, 2026 12:02
@adids1221 adids1221 assigned M-i-k-e-l and unassigned adids1221 Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants