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-facebook-keyframes
Advanced tools
A React Native wrapper for Facebook Keyframes library
A React Native wrapper for the Facebook Keyframes library.
npm install react-native-facebook-keyframes --save
react-native link react-native-facebook-keyframes
You must install Facebook Keyframes
dependency using CocoaPods:
Install cocoapods
in case you don't have already installed:
sudo gem install cocoapods
Go to [your project's name]
ios folder (in this case MyProject
):
cd MyProject/ios
Create a new Podfile
file with the following contents:
target '{MyProject}' do
pod 'Keyframes', :git => 'https://github.com/facebookincubator/Keyframes.git', :commit => '07ce61ee388360258777eb3342c87ba6128584d0'
end
Instal cocoapods dependencies and return to the project folder:
pod install
cd ../
Create a new keyframes json file (you can find a sample here)
Include the library in your js file:
import KeyframesView from 'react-native-facebook-keyframes'
Use the component:
<KeyframesView
style={{ width: 100, height: 100 }} // View styles
seek={1.0} // Seek to a given progress in range [0, 1]
src={require('./keyframes-logo.json')} // Animation file
/>
Go to the demo/KeyframesDemo
folder:
cd demo/KeyframesDemo
Install pod dependencies if running for iOS:
cd ios
pod install
cd ../
Run the project:
npm install
react-native run-ios
MIT Licensed
FAQs
A React Native wrapper for Facebook Keyframes library
The npm package react-native-facebook-keyframes receives a total of 6 weekly downloads. As such, react-native-facebook-keyframes popularity was classified as not popular.
We found that react-native-facebook-keyframes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.