
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.