Comments (7)
Hi, you need to enable the following scrollFlags
:
SCROLL_FLAG_SCROLL
| SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED
| SCROLL_FLAG_ENTER_ALWAYS
Here's a practical example.
<CollapsingToolbarLayout
title='Collapsing Toolbar'
scrollFlags={
AppBarLayout.SCROLL_FLAG_SCROLL
| AppBarLayout.SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED
| AppBarLayout.SCROLL_FLAG_ENTER_ALWAYS
}>
</CollapsingToolbarLayout>
Let me know if you got it.
from react-native-collapsing-toolbar.
Thank you @cesardeazevedo! It's not working yet but i think this is on me. Its great to know this is possible! Thanks for your awesome module and share!!
from react-native-collapsing-toolbar.
I'm trying to create all the demos shown here - https://guides.codepath.com/android/Handling-Scrolls-with-CoordinatorLayout#responding-to-scroll-events
Once I figure each one out I'll share with you here so we can add it to readme to show others. :)
from react-native-collapsing-toolbar.
Does this module also work on bottom bar?
Like this: https://cdn-images-1.medium.com/max/1200/1*5XuieX7b6u2SkLDd9KEJyg.gif
I was trying to also acheive the demos from here - https://android.jlelse.eu/scroll-your-bottom-navigation-view-away-with-10-lines-of-code-346f1ed40e9e
from react-native-collapsing-toolbar.
It should work since everything is back by a CoordinatorLayout, a truly BottomNavigationView should work, but haven't seen any BottomNavigationView bridge for react-native yet, so can't say how.
from react-native-collapsing-toolbar.
@cesardeazevedo I found a native bottom navigation view in react-native here - https://github.com/prscX/react-native-android-bottom-navigation - but I wasn't able to get it to play nicely as we talked about above. Would you be able to experiement if you have some time maybe? :)
from react-native-collapsing-toolbar.
Thanks for sharing it.
I just saw they move to a JS solution, sadly 😞
This is one those things that would play nicely inside a native navigation solution, such as airbnb native-navigation, but that's not something easy to do.
But anyway, i still have my doubts about how that could works, but i will give a try, thanks for sharing it.
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
- bug when the phone is turned off in the app with the component HOT 10
- 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.