- 
                Notifications
    
You must be signed in to change notification settings  - Fork 51
 
Description
@tolu360 As it stands, it is impossible to generate a release variant if using this react-native-paystack with react navigation.
This is because react-native-paystack requires having to set android.enableAapt2=true  else you will get these errors:
ERROR: In <declare-styleable> ForegroundView, unable to find attribute foreground
ERROR: In <declare-styleable> ForegroundView, unable to find attribute foregroundGravity
ERROR: In <declare-styleable> ForegroundView, unable to find attribute foregroundInsidePadding
Meanwhile you will get this common error
arising from react navigation \android\app\build\intermediates\res\merged\release\drawable-hdpi\node_modules_reactnavigation_src_views_assets_backicon.png: error: uncompiled PNG file passed as argument. Must be compiled first into .flat file..  if you have android.enableAapt2=true in your gradle.properties. (This temporary fix to this is changing to android.enableAapt2=false  in gradle.properties)
react-native-paystack #9 
react-navigation #3097
Any help will be greatly appreciated