-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from nemgrouplimited/feature_postlaunch_optin
Post-launch opt in
- Loading branch information
Showing
55 changed files
with
5,774 additions
and
1,836 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
console.log('[-] Fixing iOS RN Images workaround...'); | ||
const fs = require('fs'); | ||
|
||
const MAIN_FILE_PATH = __dirname + '/../node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m'; | ||
|
||
fs.readFile(MAIN_FILE_PATH, 'utf8', function(err, data) { | ||
const formatted = data.replace( | ||
/layer.contents[ ]*=[ ]*\(__bridge id\)_currentFrame.CGImage;/g, | ||
'layer.contents = (__bridge id)_currentFrame.CGImage;}else{[super displayLayer:layer];' | ||
); | ||
|
||
fs.writeFile(MAIN_FILE_PATH, formatted, 'utf8', function(err) { | ||
if (err) return console.log(err); | ||
else console.log('[+] Fixed iOS RN Images workaround...'); | ||
}); | ||
}); |
This file contains 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
Oops, something went wrong.