agontuk / react-native-collapsible-toolbar Goto Github PK
View Code? Open in Web Editor NEWPure JS based collapsible toolbar for react native on Android and iOS
License: MIT License
Pure JS based collapsible toolbar for react native on Android and iOS
License: MIT License
Hi, I have tried to use the renderToolbar method to design my collapsible but only the image in imageSource is rendered, regardless of what I do. If I remove the imageSource prop then my app breaks, telling me "Either an imageSource or custom component is required".
How can I avoid the imageSource and design my toolbar using the renderToolbar method itself?
Will this package work with Wix react-native-navigation ?
Also can you include a more detailed example? Would be helpful for beginners like myself
Thanks.
when i try to render a toptabnavigation it doesnt show anything using createMaterialTopTabNavigator
Is there anyway to use a local file ie require("../../../app/images/my_image.png")
for the image source prop? I've tried the following:
require("../../../app/images/my_image.png")
("../../../app/images/my_image.png")
"../../../app/images/my_image.png"
None of those seem to work.
Thanks.
There is an incompatibility with the iPhone X.
I modified the package slightly to fix the issue:
const isIphoneX = () => {
let d = Dimensions.get("window");
const { height, width } = d;
const result = height === 812 ? 74 : 44;
return result;
};
...
const APPBAR_HEIGHT = Platform.OS === "ios" ? isIphoneX() : 56;
Scroll view within another component which is added to the main component which has the collapsible header not working
<View style={styles.MainContainer}>
<CollapsibleToolbar
renderNavBar={this.renderNavBar}
renderToolBar={this.renderSearch}
renderContent={this.renderContent} // a component from another component that has the scrollview in it
collapsedNavBarBackgroundColor='#009688'
translucentStatusBar={Platform.Version >= 21}
toolBarHeight={300}
/>
</View>
the scrollview works if not using your library
@Agontuk :
Hi, I tried the form here is the example link: https://snack.expo.io/Syb27TlvM
As you can see, it does not allow the elements in the tab to be scrolled.
I would also like the tab to crash when the toolbar reaches the minimum height.
That is, it should scroll only the elements of the tab, without scrolling the tab.
How can I do?
What slider package are you using in the gif demo?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.