Skip to content

Instantly share code, notes, and snippets.

@ivanpagac
Created February 29, 2020 12:16
Show Gist options
  • Save ivanpagac/868ec7d065e3388cf4bda70b1dd76ffb to your computer and use it in GitHub Desktop.
Save ivanpagac/868ec7d065e3388cf4bda70b1dd76ffb to your computer and use it in GitHub Desktop.
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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment