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
setTimeout(() => console.log('Callback called') , 0); | |
Promise.resolve().then(() => console.log('Promise resolved')); |
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
const getBulbasaur = () => | |
fetch("https://pokeapi.co/api/v2/pokemon/1/").then(res => res.json()); | |
const ApiResource = createResource(getBulbasaur); | |
const Pokemon = () => { | |
const bulbasaur = ApiResource.read(); | |
return <div>Hello {bulbasaur.name}</div>; | |
}; |
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
const fs = require('fs'); | |
const data = fs.readFileSync('/file.md'); | |
console.log("Hey guys"); |
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
{"contents":{"launch":{"version":"0.2.0","configurations":[{"type":"node","request":"attach","name":"Docker: Attach to Node","port":5000,"address":"localhost","localRoot":"${workspaceFolder}","remoteRoot":"/Users/fpensato/Projects/site-6play-v4","protocol":"auto"},{"type":"node","request":"attach","name":"Attach by Process ID","processId":"${command:PickProcess}","protocol":"auto"}]}},"overrides":[],"keys":["launch.version","launch.configurations"]} |
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
<View style={styles.container}> | |
<Reparentable name="fullscreenView" target=""> | |
<FullScreenContainer /> | |
</Reparentable> | |
<Reparentable | |
name="videoPlayerId" | |
target={this.state.isFullscreen ? "fullscreenView" : ""} | |
> | |
<VideoPlayer /> |
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
<View style={styles.container}> | |
<Reparentable name="1" target=""> | |
<Text>First</Text> | |
</Reparentable> | |
<Reparentable name="2" target={this.state.shouldGo ? "1" : "goNowhere"}> | |
<Text>Second</Text> | |
</Reparentable> | |
</View> |
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
componentDidMount() { | |
setTimeout(() => { | |
// Permute child at indice 0 and 1 of parent tag 6 | |
UIManager.manageChildren(6, [0], [1], [], [], []); | |
}, 3000); | |
} |
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
const AlterNativeView = ({ isDisplayed }) => ( | |
<View> | |
<Text>Hello</Text> | |
<Text style={{ display: isDisplayed ? "flex" : "none" }}>World</Text> | |
</View> | |
); |
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
const AlterNativeView = ({ isDisplayed }) => ( | |
<View> | |
<Text>Hello</Text> | |
{isDisplayed && <Text>World</Text>} | |
</View> | |
); |
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
<View style={style.blue}> | |
<Text>Hello world !</Text> | |
</View> |