Release version cannot use native module


I am using a native module with CRNA ejected with expo kit. App works fine with locally running XDE and react-native run-android command to kick start app on android device. However when i build the apk, the build version gets undefined in JS code wherever there is usage of native library. I did run react-native link again but no luck so far.