Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@remobile/react-native-audio
Advanced tools
A audio phone number for react-native
npm install @remobile/react-native-audio --save
...
include ':react-native-audio'
project(':react-native-audio').projectDir = new File(settingsDir, '../node_modules/@remobile/react-native-audio/android')
android/app/build.gradle
...
dependencies {
...
compile project(':react-native-audio')
}
......
import com.remobile.audio.RCTAudioPackage; // <--- import
......
@Override
protected List<ReactPackage> getPackages() {
......
new RCTAudioPackage(), // <------ add here
......
}
var React = require('react');
var ReactNative = require('react-native');
var {
StyleSheet,
View,
} = ReactNative;
var Button = require('@remobile/react-native-simple-button');
var Audio = require('@remobile/react-native-audio');
module.exports = React.createClass({
play() {
if (this.player) {
this.player.stop();
this.player.release();
this.player = null;
} else {
this.player = new Audio('file:///sdcard/1.mp3', (error) => {
if (!error) {
this.player.play(()=>{
this.player.release();
this.player = null;
});
} else{
Toast('播放失败');
}
});
}
},
render() {
return (
<View style={styles.container}>
<Button onPress={this.play}>
play
</Button>
</View>
);
},
});
var styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'space-around',
alignItems: 'center',
backgroundColor: 'transparent',
}
});
isLoaded()
enable()
play(onEnd)
stop()
release()
getDuration()
getNumberOfChannels()
getVolume()
setVolume(volume)
getPan(volume)
setPan(pan)
getNumberOfLoops()
setNumberOfLoops(times)
getCurrentTime()
setCurrentTime(time)
FAQs
A audio player for react-native
The npm package @remobile/react-native-audio receives a total of 0 weekly downloads. As such, @remobile/react-native-audio popularity was classified as not popular.
We found that @remobile/react-native-audio 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.