Hazelcast cluster running in different hosts IP1, IP2...
hazelcast.xml configure the TCP-IP members
[enter image description here](https://i.stack.imgur.com/RQCRa.png)

Now I want to expanding the cluster to support more service.
I install a new hazelcast in new IP3

How can I add the new IP3 to the exsiting cluster without restarting IP1, IP2?
['https://Stackoverflow.com/questions/74610023', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/20630141/']
You should pass `log` prop in Sign component and take it like this.

```
export default function Sign({ navigation, log }) {
 async function onGoogleButtonPress() {
    await GoogleSignin.hasPlayServices();
    const userInfo = await GoogleSignin.signIn();
    setuserInfo(userInfo);
   navigation.navigate('dash', {userInfo, log});
  }
// some code

}

```

after all, `log` will be located inside `props.route.params` object

```
export default function dash(props) {
  const [text, setTextbaby] = useState();

  const {userInfo, log} = props?.route?.params;
  console.log(log);

}

```

UPDATED: use double brackets (in order to pass object)

```
log={{name: "register"}}
log={{name: "login"}}

```

---
we can pass a value from one screen to another screen through `async-storage` `react-navigation` or declare a value globally.
To pass a value from login to dashboard I recommend you to see this async-storage Docs <https://react-native-async-storage.github.io/async-storage/docs/install>  

async-storage store a value in App while React navigation does not store a value in App, React navigation just transfer value from one screen to another.
react navigation Docs <https://reactnavigation.org/docs/navigating/>
passing a value from one component to another

```
import { Text, View, Button } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';

function HomeScreen({ navigation }) {
  return (
    <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
      <Text>Home Screen</Text>
      <Button
        title="Go to Details"
        onPress={() => {
          /* 1. Navigate to the Details route with params */
          navigation.navigate('Details', {
            itemId: 86,
            otherParam: 'anything you want here',
          });
        }}
      />
    </View>
  );
}

function DetailsScreen({ route, navigation }) {
  /* 2. Get the param */
  const { itemId } = route.params;
  const { otherParam } = route.params;
  return (
    <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
      <Text>Details Screen</Text>
      <Text>itemId: {JSON.stringify(itemId)}</Text>
      <Text>otherParam: {JSON.stringify(otherParam)}</Text>
      <Button
        title="Go to Details... again"
        onPress={() =>
          navigation.push('Details', {
            itemId: Math.floor(Math.random() * 100),
          })
        }
      />
      <Button title="Go to Home" onPress={() => navigation.navigate('Home')} />
      <Button title="Go back" onPress={() => navigation.goBack()} />
    </View>
  );
}

const Stack = createNativeStackNavigator();

export default function App() {
  return (
    <NavigationContainer>
      <Stack.Navigator>
        <Stack.Screen name="Home" component={HomeScreen} />
        <Stack.Screen name="Details" component={DetailsScreen} />
      </Stack.Navigator>
    </NavigationContainer>
  );
}```

```