Thanks to visit codestin.com
Credit goes to github.com

Skip to content

REF: Replace TouchableOpacity with Pressable ( part 1 )#7945

Merged
marcosrdz merged 6 commits into
BlueWallet:masterfrom
ojokne:replace-touchable-opacity-with-pressable
Jun 18, 2025
Merged

REF: Replace TouchableOpacity with Pressable ( part 1 )#7945
marcosrdz merged 6 commits into
BlueWallet:masterfrom
ojokne:replace-touchable-opacity-with-pressable

Conversation

@ojokne

@ojokne ojokne commented Jun 12, 2025

Copy link
Copy Markdown
Member

This PR begins the migration from TouchableOpacity to Pressable, as discussed #2144 (comment). Additional PRs will follow to complete the migration

Changes included

Replaced TouchableOpacity with Pressable in:

  • BlueComponents.js

  • screen/settings/About.tsx

  • screen/settings/IsItMyAddress.tsx

Implementation notes:

Buttons with background:

  • Applied android_ripple feedback on Android (color: "#ccc").

  • Applied opacity: 0.6 on iOS when pressed.

Text-only pressables:

  • Used opacity: 0.6 on both platforms for a consistent visual press effect.

This is a scoped update to a few files to verify if the implementation meets expectations.
Happy to iterate based on feedback before continuing with the broader migration.

Related to: #2144

Comment thread screen/settings/About.tsx Outdated
Comment thread screen/settings/About.tsx Outdated
Comment thread BlueComponents.js Outdated
@ojokne ojokne force-pushed the replace-touchable-opacity-with-pressable branch from 696e848 to 51d3950 Compare June 13, 2025 05:06
@ojokne ojokne requested a review from marcosrdz June 13, 2025 05:21
@ojokne

ojokne commented Jun 13, 2025

Copy link
Copy Markdown
Member Author

I have removed the inline styles and moved the android ripple color to themes files. Let me know if anything else is needed — ready for re-review

@Overtorment

Copy link
Copy Markdown
Member

conflicts

@Overtorment

Copy link
Copy Markdown
Member

@marcosrdz if its good, merge it..?

@marcosrdz

Copy link
Copy Markdown
Member

@ojokne please solve conflicts

@marcosrdz marcosrdz merged commit c74dd0f into BlueWallet:master Jun 18, 2025
6 of 7 checks passed
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.

3 participants