Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-native-cameraroll
Advanced tools
RNCameraRoll is a replacement CameraRoll module for React Native that offers consistent behaviour across iOS and Android
npm i react-native-cameraroll --save
import RNCameraRoll from 'react-native-cameraroll';
getAssets(params: Object): Promise<Object>
Retrieve image and/or video assets from the device's Camera Roll.
RNCameraRoll.getAssets({ assetType: 'image', limit: 20 })
.then(response => console.log(response))
.catch(err => console.error(err));
params
takes the following shape:
{
assetType: 'image' | 'video' | 'all';
limit: number; // How many assets to return
start?: string | number; // The start cursor (use end_cursor from previous request)
}
The response takes the following shape:
{
assets: [{
filename: string;
height: number;
location: {
altitude?: number;
heading?: number;
latitude: number;
longitude: number;
speed?: number;
};
timestamp: number;
type: 'image' | 'video';
uri: string;
width: number;
}],
page_info: {
end_cursor: string | number;
has_next_page: boolean;
start_cursor: string | number;
};
}
We welcome any contribution to the repository. Please ensure your changes to the JavaScript code follow the styling guides controlled by ESlint. Changes to native code should be kept clean and follow the standard of existing code.
FAQs
A replacement camera roll module for React Native
The npm package react-native-cameraroll receives a total of 12 weekly downloads. As such, react-native-cameraroll popularity was classified as not popular.
We found that react-native-cameraroll 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.