Hi,
I’m printing the device name on my app :
import * as Device from 'expo-device';
[...]
<Text>{Device.deviceName}</Text>
And I also provide a chance to the user to change it with expo-intent-launcher
opening the corresponding Android menu :
import { startActivityAsync, ActivityAction } from 'expo-intent-launcher';
[...]
const openSettings = () => {
startActivityAsync(ActivityAction.DEVICE_NAME);
}
But after changing it, the value isn’t updated … And strangly isn’t updated even after launching the app again … ( a developement build )
Any clue ?
Reproductible Snack :
- SDK Version: 46
- Platforms(Android/iOS/web/all): Android