Strange behaviour of appbar back button on web
See original GitHub issueCurrent behaviour
The back button rotates on every re-render
Expected behaviour
Not rotating on every re-render
Code sample
import { Appbar } from 'react-native-paper'
<Appbar.BackAction onPress={this._back} />
Screenshots (if applicable)
What have you tried
Looking in source code and I don’t know why we are transforming things on default maybe remove this? https://github.com/callstack/react-native-paper/blob/master/src/components/MaterialCommunityIcon.tsx#L94
Update with removing transform nothing changed still the same bug
Your Environment
software | version |
---|---|
ios/android/web | web |
react-native | 0.62.2 |
react-native-paper | master |
react-native-vector-icons | master |
node | v14.3.0 |
yarn | 1.22.4 |
expo sdk | ejected from expo |
react-native-web | 0.13.1 (issue also on 0.11) |
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
NavigationBar back button strange behavior and not working
I have encountered a strange behavior on the back button of a navigation bar. I will try my best to describe with with...
Read more >Please Respect The "Back" Button : r/programming - Reddit
The Back button used to be very predictable; it would always pop the stack to the last Activity you were viewing. This worked...
Read more >Overriding Back Button in Xamarin.Forms Shell…
I've been working on trying to override the back button behavior on Xamairn.Forms Shell recently, both with Navigation bar button and ...
Read more >ion-back-button: Custom Menu Icon for Applications
The ion-back-button is a custom menu icon for Android, iOS, and Progressive Web Apps. Use Ionic Framework components to easily build applications.
Read more >Common Flutter errors
The error is often caused when a ListView (or other kinds of scrollable widgets such as GridView ) is placed inside a Column...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
(FWIW, this animation is still great for changing a regular
Appbar
action on the right side)I think we just need to use
React.useMemo
there to ensure that it doesn’t animate if it didn’t change