Questions tagged [actionsheet]

45 questions
1
vote
1 answer

How can I press individual option in actionsheet in React Native?

I am still new to React Native. I have an actionsheet with two options and a cancel option. I am having trouble understanding how to make each option do something different when pressed. My code: import React, { useRef } from "react" import…
jdez
  • 189
  • 1
  • 10
1
vote
1 answer

Actionsheet footer not getting exported in NativeBase

It seems that the ActionSheet footer is not exported using the latest release v4.0 of NativeBase.
1
vote
2 answers

TypeError: undefined is not an object (evaluating 'refRBSheet.current.open')

I tried to use react-native-raw-bottom-sheet as a reusable component. And I created one parent Componet, The problem is When I tries to give the values I got this error. TypeError: undefined is not an object (evaluating…
AsZik
  • 621
  • 1
  • 4
  • 20
1
vote
1 answer

SwiftUI - What is the difference between sheet and actionSheet?

SwiftUI has these two modifiers: .actionSheet(isPresented: $showActionPurchase) { () -> ActionSheet in and .sheet(isPresented: $showAlert, one presents an action sheet and the other presents a sheet (?) Why? What is the difference between these…
Ronnie
  • 332
  • 2
  • 11
1
vote
1 answer

SwiftUI ActionSheet does not dismiss when timer is running

I have the following simple SwiftUI setup. A timer that is running and updating a Text. If the timer is not running (stopped or paused) I can easily show an ActionSheet (by tapping on Actions) and dismiss it by choosing either "Cancel" or "Action 1"…
Dogahe
  • 1,380
  • 2
  • 20
  • 50
1
vote
2 answers

Unable to present ActionSheet via a NavigationBarItem in SwiftUI on an iPad

First, I have looked at a similar question, but it does not address my use case. Present ActionSheet in SwiftUI on iPad My issue is that I have a NavigationBarItem in my NavigationView that will toggle an ActionSheet when pressed. This behavior…
CodeBender
  • 35,668
  • 12
  • 125
  • 132
1
vote
1 answer

Rectangular Flag Emojis for react native

As you all must know, the classic emojis that are used are the ones that have flapping flags. I need to show the flags along with their countries in picker label, but the rectangular flags I want. I have found a package that returns a rectangular…
Manish
  • 471
  • 1
  • 10
  • 22
1
vote
0 answers

ActionSheet - Ionic 5 - All Available Mails - Ios

At the moment I am implementing the email composer plugin in my ionic 5 application. When the app is built on an android phone and i activate the plugin, an action sheet comes up with all mail providers available on my phone, such as (Gmail, Yahoo,…
1
vote
1 answer

Custom action sheet with SwiftUI

I have a TabView at the top of navigation and a tab which contains the user profile. I want to present an action sheet with custom style when users touch cover/profile picture. The custom style looks like this: I already try to attach a second view…
Elvin
  • 141
  • 1
  • 9
1
vote
1 answer

Disable actionSheet which is used as a picker for IOS

I am using react-native-actionsheet. How can I disable the ActionSheet which is used as a Picker (make it not clickable)? I tried: editable={false}. Are there bettter approaches?
0
votes
1 answer

How to change title's background color in CupertinoActionSheet flutter

i am using CupertinoActionSheet for bottomsheet. But i have problem with title's background color, i need title's background to be white. I searched but couldn't find a solution for this. Can you help? is there a way? This is my action sheet but i…
Beyza
  • 21
  • 3
0
votes
0 answers

Different background colour on Cancel action of UIAlertController with actionSheet style

I have a UIAlertController with preferred style actionSheet and a cancel action with cancel style. The issue I have is that as you can see from the image below, the background colour of the cancel action is slightly different from the other…
Louiza A
  • 23
  • 6
0
votes
0 answers

root view controller present in global function crash in iPad

let langs = try? VNRecognizeTextRequest.supportedRecognitionLanguages(for: .fast, revision: 2) let alertController = UIAlertController(title: "Select Language".localized, message: nil, preferredStyle: .actionSheet) for lang in langs…
user2296278
  • 528
  • 1
  • 4
  • 17
0
votes
0 answers

TypeError: undefined is not a function,In react native Actionsheet

`I am working in a project and while using Actionsheet in a funtion it is giving undefined error. I am stuck in this from last two days i also use modal drop down t also not works return Actionsheet.show( { options:…
0
votes
1 answer

Customize Action Sheet Message (Expo)

I'm using @expo/react-native-action-sheet, and i want to show a button in the props message. e.g import { useActionSheet } from "@expo/react-native-action-sheet" const { showActionSheetWithOptions } = useActionSheet() const onPress = () => { …
Lewis
  • 41
  • 5