ReactNative Context returns undefined when trying to access a value

Solution 1:

I believe it is undefined because you're trying to destructure the context value, maybe

 const { fbContext } = useContext(FirebaseContext);

should be

 const fbContext = useContext(FirebaseContext);