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 * as React from "react"; | |
import { View, Text, Button } from "react-native"; | |
import { NavigationContainer, useNavigation } from "@react-navigation/native"; | |
import { createNativeStackNavigator, NativeStackScreenProps } from "@react-navigation/native-stack"; | |
export type RootStackParamList = { | |
Home: undefined; | |
Settings: undefined; | |
Profile: undefined; | |
}; |
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
// Make EditText clickable not editable | |
fun makeEditTextClickable(et:EditText){ | |
et.isFocusableInTouchMode = false | |
et.isLongClickable = false | |
} | |
// extract activity from a given context | |
fun requireActivity(context: Context): Activity { | |
if (context is Activity) { | |
return context |