我正在尝试使用 Detox 单击“允许”按钮。
我尝试了以下方法:
我还尝试通过element(by.label('Allow')).tap()并且还针对“允许”按钮by.text
我不想在应用启动时设置位置权限。我想模拟允许和不允许位置权限的用户。
我正在使用 RN 的Share API功能构建一个带有 Expo 的应用程序。我已成功实现以下共享图像:
Share.share(
{
message: 'This is a message',
url: FileSystem.documentDirectory + imageUrlDate
},
{
dialogTitle: 'Share Today',
excludedActivityTypes: [
'com.apple.mobilenotes.SharingExtension',
'com.apple.reminders.RemindersEditorExtension'
]
}
Run Code Online (Sandbox Code Playgroud)
);
我想知道的是如何使用sharedAction()和deniedAction ()选项。
基本上,我想知道用户是取消共享还是跟进。
谢谢!