FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

refactor: example app by michalfedyna · Pull Request #5053 · callstack/react-native-paper · GitHub

refactor: example app - #5053

Open
michalfedyna wants to merge 6 commits into
callstack:mainfrom
michalfedyna:refactor/example-app
Open

refactor: example app#5053
michalfedyna wants to merge 6 commits into
callstack:mainfrom
michalfedyna:refactor/example-app

Conversation

michalfedyna commented Aug 17, 2026
edited
Loading

Copy link
Copy Markdown

Motivation

PR improves example app. It adds:

  • Samples screen
  • 8 small and focused samples
  • Improved UI for preferences
  • Search for example usage list
Screen iOS Android
Samples list
Preferences
Examples list
Search
Sign up sample
Contacts sample
Article sample
Settings sample
Player sample
Orders sample
Help center sample
Workspace sample

Related issue

#4992

Test plan

yarn lint, yarn typecheck, yarn test and a visual check of provided screenshots

MikitasK left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

looks awesome! good job 👍
just a few points to address before merge:

Comment on lines +121 to +126
const resetPreferences = React.useCallback(async () => {
setShouldUseDynamicTheme(true);
setIsDarkMode(false);
setCustomFont(false);
setRippleEffectEnabled(true);
setPreferencesVisible(false);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

what about resetting RTL here as well? currently Reset clears stored preferences but leaves rtl unchanged, so the app can remain in RTL after resetting
I18nManager.forceRTL persists forced direction across restarts

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

That one was intentional, RTL in the app requires full app reload. I wanted to keep reset more responsive. That's why no RTL reset. I would keep it that way.

Comment thread example/src/SamplesList.tsx Outdated
keyExtractor={({ id }) => id}
contentContainerStyle={[
styles.content,
{ paddingBottom: safeArea.bottom + 16 },

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

could we also include left & right safe-area insets in horizontal padding?
it's necessary to render list correctly in landscape mode (RN navigation docs)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Fixed

MikitasK left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM 👍

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL