Skip to content

Instantly share code, notes, and snippets.

@gys-dev
Forked from ivanpagac/remove_rctwebview
Last active May 5, 2020 09:56
Show Gist options
  • Save gys-dev/e8a9c84c9a986e007a1087138b172c4b to your computer and use it in GitHub Desktop.
Save gys-dev/e8a9c84c9a986e007a1087138b172c4b to your computer and use it in GitHub Desktop.
#!/bin/bash
BASE_DIR=`pwd`;
function remove_rctwebview(){
local dir="${BASE_DIR}/node_modules/react-native/React";
sed -i'.bak' '/RCTWebView/d' "${dir}/React.xcodeproj/project.pbxproj"
rm -f "${dir}/React.xcodeproj/project.pbxproj.bak"
rm -f "${dir}/Views/RCTWebView.m"
rm -f "${dir}/Views/RCTWebView.h"
rm -f "${dir}/Views/RCTWebViewManager.m"
rm -f "${dir}/Views/RCTWebViewManager.h"
}
remove_rctwebview;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment