Skip to content

Instantly share code, notes, and snippets.

@CharlesGrimont
Last active July 6, 2018 20:15
Show Gist options
  • Save CharlesGrimont/157b83501578c13cb835c4524a5c071c to your computer and use it in GitHub Desktop.
Save CharlesGrimont/157b83501578c13cb835c4524a5c071c to your computer and use it in GitHub Desktop.
React-native-fix
# Fix '#import <RCTAnimation/RCTValueAnimatedNode.h>'
# Add this to Podfile
post_install do |installer|
change_lines_in_file('../node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h') do |lines|
if lines[9].include?('#import <RCTAnimation/RCTValueAnimatedNode.h>')
lines[9].clear
lines.insert(9, '#import "RCTValueAnimatedNode.h"')
end
lines
end
end
Fix '#import <fishhook/fishhook.h>'
# Add this to Podfile
post_install do |installer|
change_lines_in_file('../node_modules/react-native/Libraries/WebSocket/RCTReconnectingWebSocket.m') do |lines|
if lines[11].include?('#import <fishhook/fishhook.h>')
lines[11].clear
lines[11].replace('#import "fishhook.h"')
end
lines
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment