skip to Main Content

any possible way we can check if targeted device is a mini version of Iphones.

2

Answers


  1. Chosen as BEST ANSWER

    I couldn't find any thing useful that would give a discrete answer to a mini version. I've used react-native-device-info with getDeviceName method and using this custom method to determine the small/mini version.

    getDeviceName()
          .then((model) => {
            dispatch({
              type: IS_SMALL_PHONE,
              payload: model.includes('mini') || model.includes('Mini') || model.includes('SE'),
            });
          })
    

  2. I think that what you’re trying to find is react-native-device-info and getDeviceId().

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search