assuming you are using oh-my-zsh and have already created a symbolic link from subl to sublime and have vim installed:

> vim ~/.zshrc


export react_editor=sublime

reload .zshrc:

> source ~/.zshrc

restart app: (example for ios)

> react-native run-ios


i got the same idea as you think of. you can do following:

1.we should make sure that sublime can be used in terminal command. so firstly we make the sublime terminal command.

sudo rm -rf /usr/local/bin/subl

sudo ln -s /applications/sublime\ /usr/local/bin

then we run subl sublime.txt you will find it works.

  1. we should change the .bashrc or .zshrc (if you has installed the oh my zsh) by adding

export react_editor=subl

3.we restart the terminal and run react native project then click the error message. amazing things will happen : ) have fun!

enter image description here

Related Query

More Query from same tag