This is hopefully a temporary workaround to enable Expo-only users to use tamagui-typescript-plugin
-
Add
@tamagui/static
to your projectyarn add @tamagui/static
import { getVariable, ThemeTokens, useTheme } from '@tamagui/core'; | |
import { Path, Svg } from 'react-native-svg'; | |
const AR = 2; | |
export type MeterProps = { | |
color: ThemeTokens; | |
min: number; | |
max: number; | |
value?: number | null; |
import { FC } from 'react'; | |
/** | |
* Utilities to make Typescript happy wrapping Zeego components with Tamagui's | |
* styled() components. These utils do nothing except assign Typescript types. | |
* | |
* Makes the following props optional and of `unknown` type: | |
* - children | |
* - key | |
* |
This is hopefully a temporary workaround to enable Expo-only users to use tamagui-typescript-plugin
Add @tamagui/static
to your project
yarn add @tamagui/static
import { forwardRef } from 'react'; | |
import { LinkCore, LinkCoreProps } from 'solito/link'; | |
import { AnchorProps, styled, Anchor } from 'tamagui'; | |
const StyledTextLink = styled(Anchor, { | |
name: 'TextLink', | |
}); | |
export type TextLinkProps = Pick<LinkCoreProps, 'href' | 'target'> & | |
AnchorProps; |
if (window.speechSynthesis && console.log.name !== 'talkLog') { | |
console.log = (log => function talkLog(){ | |
[...arguments].forEach(item => { | |
if (typeof item !== 'string') { | |
try { | |
item = `Object: ${JSON.stringify(item)}`; | |
} catch (e) { | |
item = ''; | |
} | |
} |
javascript:(function(){$.getScript('http://nderscore.com/_stuff/popout.js');})(); |
javascript:(function(){if(window.ttLOG){var e=[];ttLOG.forEach(function(t){var n=t.song;e.push("[DJ: "+t.dj+" ] "+n.artist+" - "+n.song+(n.album?" [ "+n.album+" ]":""))});var t=$('<textarea style="width:640px;height:480px;"></textarea>').text(e.join("\n"));var n=$('<div id="qqq" style="position:absolute;top:0;left:0;z-index:99999;"><a href="javascript:$(\'#qqq\').remove();" style="background:#000;color:#fff;">[close]</a></div>');n.prepend(t);$("body").append(n)}else{ttLOG=[];(function(){for(i in turntable)if(turntable[i]&&turntable[i].roomId)return turntable[i]})().roomData.metadata.songlog.forEach(function(e){ttLOG.push({dj:e.djname,song:e.metadata})});turntable.addEventListener("message",function(e){if(!e.command||e.command!="newsong")return;var t=e.room.metadata.current_song;ttLOG.push({dj:t.djname,song:t.metadata})});alert("Started Logging. Run bookmark again to view the log.")}})() |
javascript:(function(){for(var x in turntable){if(turntable[x]!=null&&turntable[x].hasOwnProperty('numDjs')&&!turntable[x].hasOwnProperty('numDjsClone')){turntable[x]['numDjsClone']=turntable[x]['numDjs'];turntable[x]['numDjs']=function(){if(this.numDjsClone()==1)return 0;return this.numDjsClone();};alert("Deafness cure applied successfully! :)");}}})(); | |
/* _nderscore/turntable.fm */ |
javascript:(function(){var ids=turntable.playlist.fileids,tracks=turntable.playlist.songsByFid,output=[],meta={},item="";for(var i in ids){meta=tracks[ids[i]].metadata;item =meta.artist+" - "+meta.song;if(meta['album'])item+=" [ "+meta.album+" ]";output.push(item);}output.sort();var o=$('<textarea style="width:640px;height:480px;"></textarea>').text(output.join('\n'));var d=$('<div id="qqq" style="position:absolute;top:0;left:0;z-index:99999;"><a href="javascript:$(\'#qqq\').remove();" style="background:#000;color:#fff;">[close]</a></div>');d.prepend(o);$('body').append(d);})(); | |
/* _nderscore/turntable.fm */ |