
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-import
Advanced tools
Easy to manage, optimised and avoid recurring react-native imports in multiple files.
Easy to manage, optimised and avoid recurring react-native and third-party imports in multiple files.
npm i -S react-native-import
In root file i.e index.js of project, apply this config
import RN, { RNConfig } from 'react-native-import';
import ThirdParty1 from 'third-party1'; //dummy example
import {ThirdParty2} from 'third-party2'; //dummy example
RNConfig({
whiteList: [], // white list the component you want to import from react-native
// default components whitelisted:
// ['AppRegistry', 'View', 'Text', 'StyleSheet', 'Platform']
// your whitelist components e.g:
// ['Button', 'Image']
blackList: [], // black list the component you dont want to import from whitelisted component
// your blacklist components e.g:
// ['View', 'Text']
thirdParty: { // third-party libraries except react
ThirdParty1,
ThirdParty2,
}
})
import React, {Component} from 'react';
import RN from 'react-native-import';
// To access the third party modules you can use RN.ThirdParty1/ RN.ThirdParty2
export default class App extends Component {
render() {
return (
<RN.View style={styles.container}>
<RN.Text>Welcome to React Native Import!</RN.Text>
</RN.View>
);
}
}
const styles = RN.StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
}
})
FAQs
Easy to manage, optimised and avoid recurring react-native imports in multiple files.
We found that react-native-import 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.