react-native-scrollable-tab-view-custom-bar
Version:
this is a custom tab bar for react-native-scrollable-tab-view
19 lines (16 loc) • 415 B
JavaScript
const React = require('react');
const ReactNative = require('react-native');
const {
TouchableNativeFeedback,
View,
} = ReactNative;
const Button = (props) => {
return <TouchableNativeFeedback
delayPressIn={0}
background={TouchableNativeFeedback.SelectableBackground()} // eslint-disable-line new-cap
{...props}
>
{props.children}
</TouchableNativeFeedback>;
};
module.exports = Button;