Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-custom-segmented-control

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-custom-segmented-control

Native iOS Custom segmented control for React Native

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-custom-segmented-control

Native UI component for Segmneted Control with custom style

Installation

  • Install using npm:

    npm i react-native-custom-segmented-control
    
  • Locate the module lib folder in your node modules: PROJECT_DIR/node_modules/react-native-custom-segmented-control/lib.

  • Drag the CustomSegmentedControl.xcodeproj project file into your project

  • Add libCustomSegmentedControl.a to your target's Linked Frameworks and Libraries.

How To Use

Require the native component:

import {CustomSegmentedControl} from 'react-native-custom-segmented-control'

Now use it in your jsx inside your View:

<CustomSegmentedControl style={{
								width: width,
                                 height:38,
                                 backgroundColor: '#7BB0A6',
                                 marginTop: 20,
                              }}
                              values={['ORDERS','HOTELS' ]}
                              tintColor={"black"}
                              selected={0}
                              segmentedStyle={{
                                                lineSelectedHeight: 1,
                                                fontSize:16,
                                                segmentBackgroundColor: 'transparent',
                                                segmentTextColor: 'black',
                                                segmentFontFamily: 'Cochin'
                              			      }}
                              animationDuration={0.2}
                              onSelectedWillChange={(event)=> {
                              	// Will WOOHOO
                              }}
                              onSelectedDidChange={(event)=> {
                                 // Did WOOHOO
                              }}

        />

FAQs

Package last updated on 18 May 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc