Comments (8)
It should hide everything what is on toolbar before the search is activated. I'll check it and fix it if there is any bug ;)
from react-native-material-ui.
Now I observed, if I put a the notification icon inside the Badge, then on clicking search icon, notification icon is not visible but the badge text is visible.
from react-native-material-ui.
Could you put here your complete <Toolbar .... />
definition?
from react-native-material-ui.
<Toolbar
leftElement="menu"
centerElement="App"
searchable={{
autoFocus: true,
placeholder: 'Search',
}}
rightElement={
<Badge text="9" style={{ container: {top: 2, right: -1} }} >
<IconToggle
name="notifications-active"
color="#ffffff"
onPress={this.openNotifications.bind(this)}
/>
</Badge>
}
onRightElementPress={this.openNotifications.bind(this)}
onLeftElementPress={this.openDrawer.bind(this)}
/>
from react-native-material-ui.
Thank you, I'll check what goes wrong ;)
from react-native-material-ui.
Thank you :)
from react-native-material-ui.
Is it also possible to hide the icons and disable them as well? Now I am also able to click on notification icon while I am typing something in the search box. The user might accidentally click on the icon while he was searching.
from react-native-material-ui.
Same for actions
, they stay onscreen when search is active 😄
<Toolbar
key = "toolbar"
centerElement = {
this.props.title
}
searchable={{
autoFocus: true,
placeholder: 'Search',
onChangeText: (v) => { console.warn(v); this.refs.beachList && this.refs.beachList.setItems(v)},
onSearchClosed: () => this.refs.beachList.setItems()
}}
rightElement={{
actions: ['favorite'],
menu: { labels: this.state.modes},
}}
onRightElementPress={(e) => console.error(e)}
/>
btw, thanks for this amazing library 👍
from react-native-material-ui.
Related Issues (20)
- componentWillReceiveProps has been renamed, and is not recommended for use
- Text attribute of button ignores last character randomly HOT 1
- Why is icon required in the bottom navigation action?
- AutoComplete is not working
- Radio Button Label not appearing in Modal
- ToolBar font error HOT 1
- Facing error while using theme
- Rework on colors and improve contrast issue
- Resovle vector icons to be animated
- How to use custom image in BottomNavigation.Action HOT 1
- Project discontinued? HOT 1
- follow-up development
- Changing toolbar color when in searchable mode (react-native-material-ui)
- how to change help text color(placeholdertext color) when seachable mode is on
- React Native UI
- please provide support for placeholdertextcolor in tool-bar HOT 2
- PropTypes are deprecated (and make the library crash with react-native-web) HOT 3
- add icon in searchable mode HOT 1
- BottomNavigationAction disabled with more features HOT 1
- on upgrading the RN to 0.70.6 of version 'ViewPropTypes' haven't use style, Text.propTypes.style ..properties , need update HOT 1
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-material-ui.