Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable multi click to TabNavigator.Item #185

Open
ahzorlu opened this issue Nov 21, 2018 · 2 comments
Open

How to disable multi click to TabNavigator.Item #185

ahzorlu opened this issue Nov 21, 2018 · 2 comments

Comments

@ahzorlu
Copy link

ahzorlu commented Nov 21, 2018

For Example, I have 2 page in my project, im using this libraries and TabNavigator.Item using for button, but multi click then it's a bad image, i want to clicked button after a click passive get, disable maybe. do you have an idea, I examined library but not found.

import TabNavigator from 'react-native-tab-navigator';

<TabNavigator style={styles.container} hidesTabTouch={true}>
                <TabNavigator.Item
                    selected={this.state.selectedTab === 'home'}
                    selectedTitleStyle={{color: "#3496f0"}}
                    renderIcon={() => <Icon name="home" size={px2dp(26)} color="#666"/>}
                    renderSelectedIcon={() => <Icon name="home" size={px2dp(26)} color="#3496f0"/>}
                    onPress={() =>this.homeOnclick()}>
                    <MainAppScreen ref={(ref) => { this.mainAppScreen = ref; }}/>
                </TabNavigator.Item>


                <TabNavigator.Item
                    selected={this.state.selectedTab === 'addwall'}
                    selectedTitleStyle={{color: "#3496f0"}}
                    renderIcon={() => <Icon name="camera-alt" size={px2dp(26)} color="#666"/>}
                    renderSelectedIcon={() => <Icon name="camera-alt" size={px2dp(26)} color="#3496f0"/>}
                    onPress={() => this.cameraOnclick()}>
                    <AddWallpaperScreen ref={(ref) => { this.addWallpaperScreen = ref; }}
                                        updateHome = {this.updateHome}/>
                </TabNavigator.Item>
 </TabNavigator>


@ahzorlu ahzorlu changed the title How to disable multi click to TabNavigator.Item in react-native-tab-navigator libraries How to disable multi click to TabNavigator.Item Nov 22, 2018
@ahzorlu
Copy link
Author

ahzorlu commented Nov 22, 2018

okay, done
hidesTabTouch={true}

@JohnnyDevX
Copy link

close it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants