diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-04-19 03:42:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 03:42:26 +0100 |
commit | ba1c4834ab23726c065aff31ef09e3578210ff01 (patch) | |
tree | 7c3335e22daf3b21e2e315d170b0936e0e26b5e6 /src/lib/constants.ts | |
parent | 20907381858b61fec61249c6ef836b9696e1ab05 (diff) | |
download | voidsky-ba1c4834ab23726c065aff31ef09e3578210ff01.tar.zst |
Add GIF select to composer (#3600)
* create dialog with flatlist in it * use alf for composer photos/camera/gif buttons * add gif icons * focus textinput on gif dialog close * add giphy API + gif grid * web support * add consent confirmation * track gif select * desktop web consent styles * use InlineLinkText instead of Link * add error/loading state * hide sideborders on web * disable composer buttons where necessary * skip cardyb and set thumbnail directly * switch legacy analytics to statsig * remove autoplay prop * disable photo/gif buttons if external media is present * memoize listmaybeplaceholder * fix pagination * don't set `value` of TextInput, clear via ref * remove console.log * close modal if press escape * pass alt text in the description * Fix typo * Rm dialog --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Diffstat (limited to 'src/lib/constants.ts')
-rw-r--r-- | src/lib/constants.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/constants.ts b/src/lib/constants.ts index bb49387c4..b96529b1f 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -89,3 +89,12 @@ export const BSKY_FEED_OWNER_DIDS = [ 'did:plc:vpkhqolt662uhesyj6nxm7ys', 'did:plc:q6gjnaw2blty4crticxkmujt', ] + +export const GIPHY_API_URL = 'https://api.giphy.com' +export const GIPHY_API_KEY = Platform.select({ + ios: 'ydVxhrQkwlcUjkVKx15mF6vyaNJbMeez', + android: 'Vwj3Ib7857dj3EcIg24Hiz1LbRVdGeYF', + default: 'vyL3hQQ8AipwcmIB8kFvg0NDs9faWg7G', +}) +export const GIPHY_PRIVACY_POLICY = + 'https://support.giphy.com/hc/en-us/articles/360032872931-GIPHY-Privacy-Policy' |