Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
186 views
in Technique[技术] by (71.8m points)

android - How to add non-telephony tablet support for Expo managed workflow react native app

I am developing an React Native app using Expo managed workflow. The app works like a charm on Android devices, but when I tried to download it on an tablet that doesn't have SIM tray, thus it's not a telephone-like device, it doesn't appear in store. Accesing the link directly, it shows that the device is not supported. Tried to get it on a tablet that does have SIM tray, in other words, a bigger telephone, and it works. I have found some info that the manifest should use something like android.hardware.telephony to be set to false in order to work on on tablets with no SIM tray. The problem it's that I am using Expo managed workflow and I cannot change the manifest, so I do not know how to solve this. Ejecting ExpoKit it's also not a solution right now. Thanks in advance!

EDIT: Also, I am having trouble adding a transparent background icon. Every time I use a .png with transparent background, the expo build user the standard android.adaptiveIcon.backgroundColor from app.json that's white. So no transparent background. Any help about this would also be appreciated.

question from:https://stackoverflow.com/questions/65865019/how-to-add-non-telephony-tablet-support-for-expo-managed-workflow-react-native-a

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Maybe you can add that block in the app.json file :

{
  "expo": {
    "name": "My App",
    "android" : {
       "supportsTablet" : true
    }
  }
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...