Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@react-native-segmented-control/segmented-control

Latest version: v2.8.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: naturalclar
662 Stars
99 Forks
5 Versions
989.2K Downloads
JavaScript Repo language

Scan summary

@react-native-segmented-control/segmented-control was last scanned on 29 Nov 2026 at version 2.8.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions; the latest 3 were published within 5 days (25–29 Nov 2026).
  • Findings: No rules fired in version 2.8.0.
  • Downloads: 989,218 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.8.0 LATEST 29 Nov 2026 No rules fired
2.7.0 29 Nov 2026 No rules fired
2.6.1 25 Nov 2026 No rules fired
2.5.9 22 Nov 2026 Not shown
2.5.8 18 Nov 2026 Not shown

No rules fired in 2.8.0

Findings

Findings for v2.8.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.8.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@react-native-segmented-control/segmented-control

Supports iOS and Android and WebGithub Action Badge npm Lean Core Extracted

React Native SegmentedControl library. Use SegmentedControl to render a UISegmentedControl iOS.

For Android and Web, it has a js implementation that mocks iOS 13 style of UISegmentedControl.

iOS Android Web

Supported React Native Version

react-native-segmented-control react-native
v2.2.0 >= 0.62
\<= v2.2.0 >= 0.57

This module is NOT supported in the Expo Go app on iOS, because it requires custom native code. You need to use a custom development client or eject into bare workflow in order to use this module on iOS.

Getting started

Install the library using your package manager:

pnpm:

pnpm install --save @react-native-segmented-control/segmented-control

yarn:

yarn add @react-native-segmented-control/segmented-control

npm:

npm install --save @react-native-segmented-control/segmented-control

Link

React Native 0.60+

The package is automatically linked when building the app. All you need to do is:

npx pod-install

For android, no linking is needed, as the module is implemented in js.

run react-native link @react-native-segmented-control/segmented-control

or you can follow the instructions to manually link this package.

Upgrading to React Native 0.60+

New React Native comes with autolinking feature, which automatically links Native Modules in your project. In order to get it to work, make sure you unlink Segmented Control first:

react-native unlink @react-native-segmented-control/segmented-control

Migrating from the core react-native module

This module was created when the segmentedControlIos was split out from the core of React Native. To migrate to this module you need to follow the installation instructions above and then change you imports from:

import {SegmentedControlIOS} from 'react-native';

to:

import SegmentedControl from '@react-native-segmented-control/segmented-control';

Usage

Start by importing the library:

Use SegmentedControl to render a UISegmentedControl iOS.

Programmatically changing selected index

The selected index can be changed on the fly by assigning the selectedIndex prop to a state variable, then changing that variable. Note that the state variable would need to be updated as the user selects a value and changes the index, as shown in the example below.

import SegmentedControl from '@react-native-segmented-control/segmented-control';

return (
  <SegmentedControl
    values={['One', 'Two']}
    selectedIndex={this.state.selectedIndex}
    onChange={(event) => {
      this.setState({selectedIndex: event.nativeEvent.selectedSegmentIndex});
    }}
  />
);

Reference

Props

Inherits View Props.

enabled

If false the user won't be able to interact with the control. Default value is true.

Type Required
bool No
disabledIndices

Indexes of the segments (positions in values) the user can't interact with, while the other segments stay interactive. For example, disabledIndices={[1]} disables the second segment. Out-of-range indexes are ignored.

Type Required
array of number No

momentary

If true, then selecting a segment won't persist visually. The onValueChange callback will still work as expected.

Type Required Platform
bool No iOS, Android, Web

apportionsSegmentWidthsByContent

If true, the width of each segment is proportional to the width of its content, so short labels take less room than long ones. By default all segments have the same width. Maps to UISegmentedControl's apportionsSegmentWidthsByContent.

Type Required Platform
bool No iOS

onChange

Callback that is called when the user taps a segment; passes the event as an argument

Type Required
function No

onValueChange

Callback that is called when the user taps a segment; passes the segment's value as an argument

Type Required
function No

selectedIndex

The index in props.values of the segment to be (pre)selected.

Type Required
number No

tintColor

Accent color of the control.

Type Required
string No

backgroundColor

Background color color of the control. (iOS 13+ only)

Type Required Supported Version
string No iOS 13+

values

The labels for the control's segment buttons, in order.

Type Required
(string number
appearance

(iOS 13+ only) Overrides the control's appearance irrespective of the OS theme

Type Required Platform
'dark', 'light' No iOS, Android, Web
fontStyle

(iOS 13+ only)

Type Required Platform
object No iOS, Android, Web

An object container

  • color: color of segment text
  • fontSize: font-size of segment text
  • fontFamily: font-family of segment text
  • fontWeight: font-weight of segment text
activeFontStyle

(iOS 13+ only)

Type Required Platform
object No iOS, Android, Web
  • color: overrides color of selected segment text
  • fontSize: overrides font-size of selected segment text
  • fontFamily: overrides font-family of selected segment text
  • fontWeight: overrides font-weight of selected segment text
tabStyle

(Android and Web only) Styles the clickable surface which is responsible to change tabs

Type Required Platform
object No Android, Web

Extends ViewStyles

sliderStyle

(Android and Web only) Styles the slider component (Animated.View)

Type Required Platform
object No Android, Web

Extends ViewStyles

Tips and Tricks

How can I increase the height of the tab ?

For android and IOS, simply pass prop.style:

{
  "height": number
}

For react-native-web, additionally pass :

{
  "paddingVertical": number,
  or
  "height": number
}
Adding padding makes text disappear on Android

If padding amount exceeds the fixed height of the container, it will shrink the text. So either increase the height or reduce your padding.

Maintainers

Contributing

Please see the contributing guide.

License

The library is released under the MIT licence. For more information see LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @react-native-segmented-control/segmented-control

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229