sibs-projects / codemod-RN24-to-RN25

A simple codemod to handle the new import style on RN25

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use require import does not work

jianhui1012 opened this issue · comments

hi, how to handle the following situation?
the code

var React = require('react');
var { StyleSheet }= React;

Expect Result:

var React = require('react');
var { StyleSheet }= require('react-native');

It will always convert to import from