* Bluetooth and location should be on.
Setting path:
realme UI 1.0 & above versions: Settings > Tap Google > Device & sharing > Nearby/Quick Share > Turn Use Nearby/Quick Share on or off
realme UI R & S & T & Go & U edition: Settings > Tap Google > Device & sharing > Nearby/Quick Share > Turn Use Nearby/Quick Share on or off
Note: "Nearby Share" is now renamed as "Quick Share"
Related Articles:
How to use Nearby Share on Android