
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
react-router-native-button
Advanced tools
React Native's button combined with React Router's Link
import RouterButton from 'react-router-native-button';
<RouterButton
to="/settings"
title="Settings"
color="#841584"
accessibilityLabel="Click to navigate to settings"
/>
<RouterButton
to={{
pathname: '/courses',
search: '?sort=name',
hash: '#the-hash',
state: { fromDashboard: true }
title="Courses"
color="#841584"
accessibilityLabel="Click to navigate to settings"
/>
npm install -g react-router-native-button
accessibilityLabel?: ?string
Text to display for blindness accessibility features
color?: ?string
Color of the text (iOS), or background color of the button (Android)
disabled?: ?boolean
If true, disable all interactions for this component.
testID?: ?string
Used to locate this view in end-to-end tests.
title: string
Text to display inside the button
to: ?string
The pathname or location to link to.
to: ?object
The location to link to.
replace: ?boolean
When true, clicking the button will replace the current entry in the history stack instead of adding a new one.
React Native for the Button code
React Router for the Link code that's used here
FAQs
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
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.