Comments (3)
Yes indeed, the textColor was left behind, i am using the highlightColor
prop as the actual default text color of the <Text />
component, and only using the textColorExpanded
to set the expanded color.
That is how it works.
- When expanded, All
<Text />
components on the header will be set to thetextColorExpanded
color. - When collapsed, All
<Text />
components returns to the original color which was set onhighlightColor
prop.
So this means that each can have a different default color when collapsed, but they can only have one color when expanded.
The highlightColor
is a work around that i found when trying to get the color from the styles directly.
I remember posting this doubt on stack-overflow, but i never got any answer.
https://stackoverflow.com/questions/43061034/how-to-get-style-props-on-the-native-side-in-react-native
Please, feel free to send me a pull request removing the textColor prop.
Thanks for report.
from react-native-bottom-sheet-behavior.
I think you shouldn't remove textColor prop. Temporarily, it will be better to make it work, like textColorExpanded works, until you'll find out how to use colors from styles.
from react-native-bottom-sheet-behavior.
It will doesn't work because each <Text />
component inside can start with a different colors from each other when collapsed, but only one color when expanded, and i cannot add textColorCollapsed
to a ReactTextView.
from react-native-bottom-sheet-behavior.
Related Issues (20)
- Null pointer exception shouldInterceptTouchEvent HOT 3
- Pass touch events to underlying view when BackdropBottomSheet is not defined while at anchor point
- Execution failed for task `:app:transformClassesWithMultidexlistForDebug` HOT 6
- Could not find a declaration file for module 'react-native-bottom-sheet-behavior' HOT 1
- requireNativeComponent: "BSBBottomSheet-BehaviorAndroid" was not found in the UIManager. HOT 3
- UIManager['BSBottomSheetBehaviourAndroid'] is no longer supported . Use UIManager.ViewManagerConfig('BSBottomSheetBehaviourAndroid') instead warning HOT 6
- Crashes when dragging if keyboard is open
- Update to latest library support to latest and change compile to implementation HOT 1
- Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED HOT 3
- Bottom container height without anchor point HOT 9
- collected in excellent-RN-libs
- Can't Build React-Native App HOT 1
- _reactNative.UIManager.getViewManagerConfig('BSBBottomSheetBehaviorAndroid') HOT 1
- Package android.support.design.widget does not exist HOT 1
- Task :react-native-bottom-sheet-behavior:compileDebugJavaWithJavac FAILED HOT 1
- Q: Additional FloatingActionButton, anchored, above BottomSheet HOT 1
- BottomSheetBehavior ref is null
- pull up to show more,pull down to hide
- Thank you for making this
- Crash when <BottomSheetBehavior /> is hidden within <CoordinatorLayout />
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-bottom-sheet-behavior.