I got it fixed ,it was incompatibility issue , react native version 0.78 and 0.79 not compatible with latest expo version .
I downgraded react native to 0.77.2 and OfCourse react to 18.3.0 and kept expo in latest version it worked as expected .
but should react native community gives us a development warning about incompatibility with expo , I spent over 3 weeks trying to narrow the issue and I was thinking it was something wrong with my code .