This file contains hidden or 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 reactDevelopers = { | |
| yamanKatby: { | |
| fullName: "Yaman KATBY", | |
| userName: "@yamankatby" | |
| }, | |
| ahmetKaya: { | |
| fullName: "Ahemt KAYA", | |
| userName: "@ahmetkaya" | |
| } | |
| }; |
This file contains hidden or 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, surname) => 'Merhaba ' + name + ' '+ surname + '!'; // 💩 Karmaşık | |
| const sayHello = (name, surname) => `Merhaba ${name} ${surname}!`; // 🎉 Daha kolay |
This file contains hidden or 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
| exports.sayHello = name => `Merhaba ${name}!`; | |
| module.exports = name => `Merhaba ${name}!`; |
This file contains hidden or 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 = require("./old-export"); |
This file contains hidden or 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
| export const sayHello = name => `Merhaba ${name}!`; | |
| export default name => `Merhaba ${name}!`; |
This file contains hidden or 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 { sayHello } from "./new-export"; | |
| import sayHello from "./new-export"; |
This file contains hidden or 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 from "react"; | |
| import { Text, View } from "react-native"; | |
| import ProgressOverlay from "react-native-progress-overlay"; | |
| const Home = props => { | |
| return ( | |
| <View style={{ flex: 1 }}> | |
| <ProgressOverlay visible={true} /> | |
| <Text>Hi, this is my Home screen!</Text> |
This file contains hidden or 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
| export const showProgress = (text) => ({ | |
| type: "SHOW_PROGRESS", | |
| text | |
| }); | |
| export const hideProgress = () => ({ | |
| type: "HIDE_PROGRESS" | |
| }); |
This file contains hidden or 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 initialState = { | |
| visible: false, | |
| text: "" | |
| }; | |
| export default (state = initialState, action) => { | |
| switch (action.type) { | |
| case "SHOW_PROGRESS": | |
| return { | |
| ...state, |
This file contains hidden or 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 from "react"; | |
| import { View } from "react-native"; | |
| import { connect } from "react-redux"; | |
| import ProgressOverlay from "react-native-progress-overlay"; | |
| const App = props => { | |
| return ( | |
| <View> | |
| <ProgressOverlay visible={props.visible} text={props.text} /> |