Skip to content

Cannot read property 'setWallpaper' of null in iOS app #1

@manasmahala

Description

@manasmahala

Getting error like Cannot read property 'setWallpaper' of null. I am facing this issue in ios only. Android app is working fine. Attaching my code below for your reference.

_setWallpaper = (val, item) => { 
    WallPaperManager.setWallpaper({ uri: item.url }, (res) => {
      if(res.status == 'success') {
        alert('Wallpaper set successfully');
      } else {
        alert(res.message);
      }
    });
  };

Help me if any one have the solution. Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions