Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
react-native-scroll-menu-custom
Advanced tools
Readme
A package clone and edit to use image base64 from
React native scrolling button horizontal
npm i react-native-scroll-menu
yarn add react-native-scroll-menu
Example |
---|
import React, {Component} from 'react';
import {
View
} from 'react-native';
//import this
import ScrollingButtonMenu from 'react-native-scroll-menu';
//define menu
let menus = [
{
name: 'Sekiz',
id: 1,
backgroundColor: '#388E3C',
borderColor: '#388E3C',
},
{
text: 'Penguen',
id: 2,
}
];
export default class Example extends Component {
render() {
return (
<ScrollingButtonMenu
items={[
{
id: 1,
name: 'Sekizli',
},
{
id: 2,
name: 'Penguen',
},
{
id: 3,
name: 'Ermec',
},
{
id: 4,
name: 'Emre',
},
{
id: 5,
name: 'Hasan',
},
{
id: 6,
name: 'Elif',
},
{
id: 7,
name: 'Vegin',
},
{
id: 8,
name: 'Sevim',
},
]}
onPress={(e) => {
console.log(e);
}}
selected={7}
/>
);
}
}
Key | Type | Description |
---|---|---|
items | Array | Array for button menu is required |
onPress | Function(menu) | Function when press button is required |
upperCase | Boolean | Uppercase text (optional) default value => false |
selectedOpacity | Number | Opacity when pressed button (optional) default value => 0.7 |
buttonStyle | Object | |
textStyle | Object | |
activeColor | string | "#fffff" |
activeBackgroundColor | string | "#fffff" |
selected | number | item id => 1 |
keyboardShouldPersistTaps | string | default => always |
FAQs
React native scrolling menu
The npm package react-native-scroll-menu-custom receives a total of 0 weekly downloads. As such, react-native-scroll-menu-custom popularity was classified as not popular.
We found that react-native-scroll-menu-custom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.