issue: ENG-8541
We need this to be able to display the button for the muted tab tip.
For now this results in some changes to the style: the indicator doesn't smoothly move from one tab to the second, and there is some on press feedback that wasn't present before. I'll address those changes in ENG-9041
Details
Details
- Reviewers
tomek will - Commits
- rCOMMa80d7f215c6d: [native] Create custom top tabs component
Please see the videos:
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
native/chat/chat-tab-bar-button.react.js | ||
---|---|---|
117–127 ↗ | (On Diff #43385) | Based on source code |
native/chat/chat-tab-bar.react.js | ||
39–57 ↗ | (On Diff #43385) | I will address the flow issues in https://linear.app/comm/issue/ENG-9039/investigate-flow-errors |
Comment Actions
Looks ok, but based on this comment https://linear.app/comm/issue/ENG-9041/update-tabs-style#comment-ce51487d I'm wondering if we can use TabBarItem from react-native-tab-view.
native/chat/chat-tab-bar-button.react.js | ||
---|---|---|
97 ↗ | (On Diff #43387) | Can we use something from our color palette? |
native/chat/chat-tab-bar.react.js | ||
---|---|---|
42–48 | Can we use something from innerProps.route as a key of ButtonTitleToTip? That would make it less fragile. | |
native/chat/chat.react.js | ||
124–125 | ||
125 | I guess we can use React.Node here | |
545 | Exporting values next to a default export usually causes some hot reloading issues. Could you move these values somewhere else? |