-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
408755e
commit 7e0c912
Showing
9 changed files
with
135 additions
and
161 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
diff --git a/node_modules/react-native-share/RNShare.podspec b/node_modules/react-native-share/RNShare.podspec | ||
index 32750f0..80944b2 100644 | ||
--- a/node_modules/react-native-share/RNShare.podspec | ||
+++ b/node_modules/react-native-share/RNShare.podspec | ||
@@ -14,5 +14,5 @@ Pod::Spec.new do |s| | ||
|
||
s.source_files = "ios/**/*.{h,m}" | ||
|
||
- s.dependency "React-Core" | ||
+ s.dependency "React" | ||
end |
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,34 @@ | ||
// @flow | ||
|
||
export const utf8 = { | ||
parse(text: string): Uint8Array { | ||
const byteString = encodeURI(text) | ||
const out = new Uint8Array(byteString.length) | ||
|
||
// Treat each character as a byte, except for %XX escape sequences: | ||
let di = 0 // Destination index | ||
for (let i = 0; i < byteString.length; ++i) { | ||
const c = byteString.charCodeAt(i) | ||
if (c === 0x25) { | ||
out[di++] = parseInt(byteString.slice(i + 1, i + 3), 16) | ||
i += 2 | ||
} else { | ||
out[di++] = c | ||
} | ||
} | ||
|
||
// Trim any over-allocated space (zero-copy): | ||
return out.subarray(0, di) | ||
}, | ||
|
||
stringify(data: Uint8Array | number[]): string { | ||
// Create a %XX escape sequence for each input byte: | ||
let byteString = '' | ||
for (let i = 0; i < data.length; ++i) { | ||
const byte = data[i] | ||
byteString += '%' + (byte >> 4).toString(16) + (byte & 0xf).toString(16) | ||
} | ||
|
||
return decodeURIComponent(byteString) | ||
} | ||
} |
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.