Skip to content
Snippets Groups Projects
Commit f4ef00d4 authored by MariaZ's avatar MariaZ Committed by BloodyMarie
Browse files

Fix adding images to final build

parent 953e0800
No related branches found
No related tags found
No related merge requests found
......@@ -41,4 +41,22 @@ target 'drip' do
use_native_modules!
use_frameworks!
post_install do |installer|
find_and_replace("../node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m",
"_currentFrame.CGImage;","_currentFrame.CGImage ;} else { [super displayLayer:layer];")
end
def find_and_replace(dir, findstr, replacestr)
Dir[dir].each do |name|
text = File.read(name)
replace = text.gsub(findstr,replacestr)
if text != replace
puts "Fix: " + name
File.open(name, "w") { |file| file.puts replace }
STDOUT.flush
end
end
Dir[dir + '*/'].each(&method(:find_and_replace))
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment