Last active
July 6, 2018 20:15
-
-
Save CharlesGrimont/157b83501578c13cb835c4524a5c071c to your computer and use it in GitHub Desktop.
React-native-fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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