Is there a way to have Atom generate import statements for components I add to my react-native files?
When adding a standard react-native component (like a Navigator
) while editing react-native code in the Atom/Nuclide editor, I find I need to manually write import statements. Is this expected?
In the traditional native IDE world (Android Studio, XCode), import statements are auto-generated by the IDE. Is there an atom package for this?
Example:
import React, { Component } from 'react'
import { AppRegistry } from 'react-native'
class TestProject extends Component {
render() {
return (
<Navigator
...
In the above, line 2 should become:
import { AppRegistry, Navigator } from 'react-native'