
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
react-native-sclrvwr
Advanced tools
$ npm install react-native-sclrvwr --save
$ npm install react-native-sclrvwr --save
$ cd ios && pod install
$ react-native link react-native-sclrvwr
Libraries ➜ Add Files to [your project's name]node_modules ➜ react-native-sclrvwr and add RNSclrvwr.xcodeprojlibRNSclrvwr.a to your project's Build Phases ➜ Link Binary With LibrariesCmd+R)<android/app/src/main/java/[...]/MainActivity.javaimport com.scalarvision.sclrvwr.RNSclrvwrPackage; to the imports at the top of the filenew RNSclrvwrPackage() to the list returned by the getPackages() methodandroid/settings.gradle:
include ':react-native-sclrvwr'
project(':react-native-sclrvwr').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sclrvwr/android')
android/app/build.gradle:
compile project(':react-native-sclrvwr')
Viewer.is3Dsupported(); //Return true if the device supports 3D.
Viewer.isARsupported(); //Return true if the device support AR Core/Kit.
Viewer.show3Dmodel("spx", 76598); //Shows the model in 3D mode.
Viewer.showAR("spx", 16604); //Shows the model in AR mode.
import React, { Component} from 'react';
import { View, Button, StyleSheet, Alert} from 'react-native';
import Viewer from 'react-native-sclrvwr';
class App extends Component {
constructor(props){
super(props);
this.onPress3D = this.onPress3D.bind(this);
this.onPressAR = this.onPressAR.bind(this);
}
onPress3D(){
if (Viewer.is3Dsupported()){
Alert.alert(
"3D Support",
"Your device supports 3D!",
[{ text: "OK", onPress: () => console.log("OK Pressed") }]
);
}
else{
Alert.alert(
"3D Support",
"Your device does not supported 3D!",
[{ text: "OK", onPress: () => console.log("OK Pressed") }]
);
}
}
onPressAR(){
if (Viewer.isARsupported()){
Alert.alert(
"AR Support",
"Your device supports AR!",
[{ text: "OK", onPress: () => console.log("OK Pressed") }]
);
}
else{
Alert.alert(
"AR Support",
"Your device does not supports AR!",
[{ text: "OK", onPress: () => console.log("OK Pressed") }]
);
}
}
show3Dmodel(){
Viewer.show3Dmodel("spx", 76598);
}
showARmodel(){
Viewer.showAR("spx", 16604);
}
render(){
return (
<View style={[{translateY: 100}]}>
<View style={styles.separator} />
<Button title ="is3Dsupported" color ="#841584" onPress={this.onPress3D}/>
<View style={styles.separator} />
<Button title ="isARsupported" color ="#841584" onPress={this.onPressAR}/>
<View style={styles.separator} />
<Button title ="show3Dmodel" color ="#841584" onPress={this.show3Dmodel}/>
<View style={styles.separator} />
<Button title ="showAR" color ="#841584" onPress={this.showARmodel}/>
</View>
);
}
};
const styles = {
separator: {
marginVertical: 50,
borderBottomColor: '#737373',
borderBottomWidth: StyleSheet.hairlineWidth,
},
};
export default App;
FAQs
## Getting started
We found that react-native-sclrvwr 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.