Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3356601
D11380.id38341.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
430 B
Referenced Files
None
Subscribers
None
D11380.id38341.diff
View Options
diff --git a/native/utils/neynar-utils.js b/native/utils/neynar-utils.js
new file mode 100644
--- /dev/null
+++ b/native/utils/neynar-utils.js
@@ -0,0 +1,12 @@
+// @flow
+
+let neynarKey: ?string = null;
+try {
+ // $FlowExpectedError: file might not exist
+ const { key } = require('../facts/neynar.json');
+ neynarKey = key;
+} catch {
+ console.log('native/facts/neynar.json does not exist.');
+}
+
+export { neynarKey };
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 7:34 PM (17 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2576774
Default Alt Text
D11380.id38341.diff (430 B)
Attached To
Mode
D11380: [native] Export `neynarKey` so it's accessible from `native`
Attached
Detach File
Event Timeline
Log In to Comment