Monday, September 30, 2019

Error: cannot find symbol import

Having same problem like i had?

node_modules/react-native-audio/android/src/main/java/com/rnim/rn/audio/ error: cannot find symbol
  symbol:   class ActivityCompat
  location: package

Or something looks similar that saying
Well here is the SO, the solution is to jetify.

Use this :
step 1: add these two lines in Visit for complete guideline
step 2: use these commands
First of all remove node_modules folder and reinstall it using
npm install 
and then
npm install --save-dev jetifier 
npx jetify  
npx react-native run-android 
npx jetify
Happy coding ^^

Monday, September 23, 2019

Mapbox-gl Map got truncated

Mapbox-gl got initialized and then tap a button nav.push(xxx) and then from xxx.ts nav.pop().

Then the map got truncated or not full screen.

The solution is to call with setTimeout() 200-250ms would do.