Comments (10)
Hi, thanks for report, have you experience this issue even with a production build? which react-native version are you using?
from react-native-collapsing-toolbar.
Hi Cesar, thats happen in react-native 0.55.0.. and also happen with '--variant=release'.
Is there a suggestion of compatibility with some version of react-native?
Thanks
from react-native-collapsing-toolbar.
I haven't tried new version from react-native yet, so i presume that new versions "just works".
Have you tried call the redraw()
function from the AppBarLayout ref on componentDidMount or when the app came back from the background (by AppState)?
from react-native-collapsing-toolbar.
I have try:
_handleAppStateChange = (nextAppState) => {
if (this.state.appState.match(/inactive|background/) && nextAppState === 'active') {
this.appBar.redraw();
}
this.setState({appState: nextAppState});
};
componentDidMount() {
AppState.addEventListener('change', this._handleAppStateChange);
}
componentWillUnmount() {
AppState.removeEventListener('change', this._handleAppStateChange);
}
<AppBarLayout ref={(ref) => { this.appBar = ref }}>
</AppBarLayout>
but without luck :(
from react-native-collapsing-toolbar.
I have noted that redraw() some times work and some times not. Maybe the code that I showed is wrong?
from react-native-collapsing-toolbar.
Interesting, i will take a look at it as soon as i get some time this week
from react-native-collapsing-toolbar.
Thank you! I appreciate that very much!
from react-native-collapsing-toolbar.
Hi, sorry for delayed response, i've fully reproduced your issue on my simulator, and i have tested your code and worked, i tested multiple times and never had any single attempt that didn't worked.
Or maybe i am testing wrong? any idea?
I also don't think this is the best solution at all, it's actually really hard to understand how native modules behave in certain situations, i will still think in some pleasant solution.
from react-native-collapsing-toolbar.
try it in on real device you will see the problem
from react-native-collapsing-toolbar.
@magestein Hello, how did you solve it? I'm just like you, but I happened when the application was started, not when the application was waked up. #21
from react-native-collapsing-toolbar.
Related Issues (20)
- ios build issue HOT 2
- Mention in readme that compileSdkVersion should be 25 HOT 2
- How to change overflow icon color? HOT 5
- Alt use of AppBarLayout - Possible to mimic play sotre behavior on "scroll up"/"scroll to top" HOT 7
- Can't work with NavBarIcon HOT 4
- The SDK Build Tools revision (23.0.1) is too low for project ':react-native-nested-scroll-view'. Minimum required is 25.0.0 HOT 2
- StatusBar translucent with under the image and other things ... HOT 11
- undefined is not an object HOT 3
- I have this issue HOT 3
- D8: Program type already present: android.support.design.widget.CoordinatorLayout$Behavior HOT 5
- You have to rotate the screen to work properly. HOT 4
- Support library versions are hardcoded
- Feedback based on my own CoordinatorLayout implementation HOT 2
- Help! Could you tell me what's the problem in my codes? HOT 1
- RN Collapsing Toolbar Title Does Not Show
- Problem: Strange behavior of the toolbar HOT 3
- Works on iOS? HOT 1
- RNCollapsingToolbarPackage is not abstract and does not override abstract method createJSModules() in ReactPackage HOT 4
- Execution failed for task ':react-native-nested-scroll-view:compileReleaseJavaWithJavac' HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-collapsing-toolbar.