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
module.exports = { | |
getTransformModulePath() { | |
return require.resolve("react-native-typescript-transformer"); | |
}, | |
getSourceExts() { | |
return ["ts", "tsx"]; | |
} | |
}; |
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
Show hidden characters
{ | |
/* Search the config file for the following line and uncomment it. */ | |
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ | |
} |
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
import React, { Component } from "react"; | |
import { Text, View } from "react-native"; | |
interface Props { | |
} | |
interface State { | |
} |
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
if (true) { | |
var var_message = "if scope'un içerisindeyim"; | |
} | |
if (true) { | |
let let_message = "bende if scope'un içerisindeyim"; | |
} | |
console.log(var_message); // 🎉 Bunu yapabilirsin -> if scope'un içerisindeyim | |
console.log(let_message); // 💥 Bunu yapamazsın (ReferenceError) |
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
let name = 'Yaman KATBY'; | |
const username = '@yamankatby'; | |
name = 'KATBY Yaman'; // 🎉 Bunu yapabilirsin | |
surname = '@yaman_katby'; // 💥 Bunu yapamazsın (TypeError) |
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 sayHello = (name) => { | |
return "Merhaba, " + name + "!"; | |
}; | |
sayHello("Yaman KATBY"); // 🎉 Hello, Yaman KATBY! |
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 sayHello = (name = "Yeni Kullanıcı") => { | |
return "Merhaba " + name + "!"; | |
}; | |
sayHello(); // Merhaba Yeni Kullanıcı! | |
sayHello("Yaman KATBY"); // Merhaba Yaman KATBY! |
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 sayHello = (name = "Yeni Kullanıcı") => "Merhaba " + name + "!"; |
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 profile = { | |
name: "Yaman KATBY", | |
username: "@yamankatby", | |
email: "[email protected]" | |
}; | |
const name = profile.name; // Yaman KATBY | |
const username = profile.username; // @yamankatby | |
const email = profile.email; // [email protected] |
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 profile = { | |
name: "Yaman KATBY", | |
username: "@yamankatby", | |
email: "[email protected]" | |
}; | |
const { name, username, email } = profile; |
OlderNewer