
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
react-native-quick-controls
Advanced tools
$ npm install react-native-quick-controls --save
$ react-native link react-native-quick-controls
import React from "react"
import { View, Text, Image } from "react-native"
import QuickControls from 'react-native-quick-controls';
const QuickControlsApp = props => {
return (
<QuickControls
duration={300}
landscapeStyle={{ marginTop: 20 }}
viewMode={val => console.log(val)}
portraitEndPoint={0.7}
landscapeEndPoint={0.5}
children={
<View style={{ flex: 1 }}>
<Text>This is a children component</Text>
</View>
}
parent={
<Image
style = {{ alignSelf: 'center', width: 25, height: 50, resizeMode: 'contain' }}
source = {{ uri: "https://cdn3.iconfinder.com/data/icons/o-shaped-flag-1/128/O_shaped_asian_flag-21-256.png" }}
/>
}
first_action={() => console.log("First action pressed!")}
first_child={<Image
style = {{ alignSelf: 'center', width: 36, height: 36, resizeMode: 'contain' }}
source = {{ uri: "https://cdn3.iconfinder.com/data/icons/o-shaped-flag-1/128/O_shaped_asian_flag-21-256.png" }}
/>}
second_action={() => console.log("Second action pressed!")}
second_child={<Image
style = {{ alignSelf: 'center', width: 36, height: 36, resizeMode: 'contain' }}
source = {{ uri: "https://cdn3.iconfinder.com/data/icons/o-shaped-flag-1/128/O_shaped_asian_flag-27-128.png" }}
/>}
third_action={() => console.log("Third action pressed!")}
third_child={<Image
style = {{ alignSelf: 'center', width: 36, height: 36, resizeMode: 'contain' }}
source = {{ uri: "https://cdn3.iconfinder.com/data/icons/o-shaped-flag-1/128/O_shaped_asian_flag-16-256.png" }}
/>}
/>
)
}
Prop | Type | Required | Default | Description |
---|---|---|---|---|
parent | component | Yes | The parent component | |
first_child | component | Yes | The first child to show | |
first_action | Action | Yes | The action perform after first child clicked | |
second_child | component | Yes | The second child to show | |
second_action | Action | Yes | The action perform after second child clicked | |
third_child | component | Yes | The third child to show | |
first_action | Action | Yes | The action perform after third child clicked | |
duration | milliseconds | No | 500 | The duration of animation |
portraitEndPoint | double | No | 0.7 | The limit of the menu can reached in portrait mode |
landscapeEndPoint | double | No | 0.5 | The limit of the menu can reached in landscape mode |
viewMode | Function | No | Callback function for screen mode changed | |
commonStyle | style | No | Common style for both portrait and landscape mode | |
portraitStyle | style | No | Style for portrait mode | |
landscapeStyle | style | No | Style for landscape mode |
MIT Licensed
FAQs
React Native Quick Controls
The npm package react-native-quick-controls receives a total of 0 weekly downloads. As such, react-native-quick-controls popularity was classified as not popular.
We found that react-native-quick-controls 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
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.