Ciao, I got your code from github repo and then, to test it, I used react-native-expo-gitpod. It's just an empty project that could be runned on gitpod. Then I pasted your code from github repo in App.js and runned it. I made the login in HomeScreen
:

Then I filled Details
info and password fields:

Then I clicked Add Password
button. And the result was that button_click
function is called just one time!
This is DetailsScreen
code:
function DetailsScreen({ navigation, route }) {
const [text3, setText3] = useState("");
const [text4, setText4] = useState("");
const { param1, param2 } = route.params;
const button_click = () => {
console.log("button_click");
add_password(text3, text4, param1, param2);
};
return (
<View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
<TextInput
style={{ height: 40 }}
placeholder="info"
onChangeText={(text3) => setText3(text3)}
defaultValue={text3}
/>
<TextInput
style={{ height: 40 }}
placeholder="password"
onChangeText={(text4) => setText4(text4)}
defaultValue={text4}
/>
<Button
title="Add Password"
onPress={button_click} />
</View>
);
}
Exactly like yours (except the log to check how many times function is called).
The log I received is:

calling add_password
is another log that I putted in add_password
function.
Seems that all is working well!
Note: this is my package.json
:
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start -c --host tunnel",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject",
"test": "jest --watchAll"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"@expo/samples": "~3.0.3",
"@expo/vector-icons": "^10.0.3",
"@react-native-community/masked-view": "^0.1.10",
"@react-navigation/native": "^5.7.3",
"@react-navigation/stack": "^5.9.0",
"@react-navigation/web": "^1.0.0-alpha.9",
"expo": "^35.0.0",
"expo-asset": "^7.0.0",
"expo-constants": "^7.0.0",
"expo-font": "^7.0.0",
"expo-web-browser": "^7.0.0",
"firebase": "^7.17.2",
"react": "16.8.3",
"react-dom": "16.8.3",
"react-native": "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz",
"react-native-gesture-handler": "~1.3.0",
"react-native-safe-area-context": "^0.3.6",
"react-native-screens": "^2.10.1",
"react-native-web": "^0.11.7",
"react-navigation": "^3.12.0"
},
"devDependencies": {
"babel-preset-expo": "^7.0.0",
"jest-expo": "^35.0.0"
},
"private": true
}