clip-sub / react-native-bottomsheet Goto Github PK
View Code? Open in Web Editor NEWTrue Cross-platform ActionSheet for Android and iOS
License: MIT License
True Cross-platform ActionSheet for Android and iOS
License: MIT License
After install, I run yarn run android
and receive error like image.
compileSdkVersion 25
buildToolsVersion "25.0.1"
"react-native": "^0.48.4"
compile "com.android.support:appcompat-v7:23.0.1"
I tried:
Replace android value: This solution
Change the compile "com.android.support:appcompat-v7:23.0.1" to compile "com.android.support:appcompat-v7:26.+"
All not running. :(
Reply me as Vietnamese lang if you can.
Hi,
Could you publish your package to NPM? It was last published 2 years ago and you have had lots of updates since then it would be really good to get them in the package.
If we could up the react native version to ^0.71.0 first that would be fantastic.
Thanks,
Adam
"react": "16.0.0-alpha.6",
"react-native": "0.44.0",
"react-native-bottomsheet": "^1.6.0",
I am Facing this issue in Android.
When I try to open bottomsheet while keyboard open app crashed. So I checked issue and solve by hide keyboard before open bottomsheet. Please review this issue and solve in library.
I'm gettings this error when trying this on Android:
BottomSheet.showBottomSheetWithOptions({
options: SORT_OPTIONS,
title: Strings.Sort,
dark: true,
cancelButtonIndex: SORT_OPTIONS.length - 1,
}, (value) => {
this.sort(value);
});
Hi there,
For me, the callback function works fine for the 'options' but the cancel button does not seem to be working. Is this intentional or am I doing something wrong?
BottomSheet.showBottomSheetWithOptions({
options: this.props.options,
cancelButtonIndex: this.props.cancelButtonIndex,
destructiveButtonIndex: this.props.destructiveButtonIndex,
title: this.props.title,
}, (value) => {
console.log(value);
});
Props being passed in (in case something is wrong there):
interface IActionSheetProps {
options: string[];
cancelButtonIndex: number;
destructiveButtonIndex: number;
title: string;
}
Google introduced official bottomsheets implementation in Support library 23.2.0,thus this library is no longer activly being developed. I will continuely fix defects been found and accept good PR but No more new feature will be developed.
Hey,
latest release on NPM crashes on Android. Fix was merged to master 12 days ago. Would be ๐ to push this to NPM as well.
With the release of React Native 0.69.0 a new requirement for React 18 was brought in. Our project uses React 0.71.3 which brings in React 18.
Our project then clashes with this package's React Native 0.64.0 requirement of React 17.0.2, meaning we have to install with the --legacy-peer-deps flag in npm.
Can this package be brought up to date with the latest React Native and React versions?
Hi there.
As of today many faced an issue with building RN apps due to major release by google.
Details are here: RN issue
The main way to fix this is to upgrade your app to Androidx.
Android studio has a way to update dependencies sort of automatically, but bottomsheet is one that can not be updated.
Here is Gradle sync error after one adds
android.useAndroidX=true android.enableJetifier=true
to gradle.properties according to manual.
Unable to resolve dependency for ':react-native-bottomsheet@debug/compileClasspath': Failed to transform file 'bottomsheet-1.3.1.aar' to match attributes {artifactType=processed-aar} using transform JetifyTransform
This prevents me from migrating project to Androidx and thus from ability to further build.
I see this references native bottomsheet library and not your wrapper directly.
Hopefully you might know the reason Jettifier can not transform this exact aar or have other thoughts on this.
Thanks for accepting the latest PR's with the type declaration files. Could you also publish a new NPM version for this? Thanks in advance @acaziasoftcom
Hi,
I keep getting this error when i call my onPress function. Error - null is not an object (evaluating '_reactNativeBottomsheet.default.showBottomSheetWithOptions
.
I made sure to the package is linked.
I made sure to import import BottomSheet from 'react-native-bottomsheet';
I used the example code from the readme.
Device Info: Android Emulator - Nexus_5 API_25:5554.
Android Version - 7.1 (Nougat) - API 25
React Native Version - 0.59.10
React Version - 16.8.3
Giving Cannot proxy the given URL
Just curious, as I find the animation on this implementation to be a bit slow.
Hello thanks for your awesome plugin, is there anyway to insert a text with a left
or right
image?
kind of
BottomSheet.showBottomSheetWithOptions({
options: [
{image : "http:// || require(...)", title : "Option 1", position : "right"},
{image : "http:// || require(...)", title : "Option 2", position : "left"},
{image : "http:// || require(...)", title : "Option 3", position : "right"},
],
title: 'Demo Bottom Sheet',
dark: true,
cancelButtonIndex: 3,
}, (value) => {
alert(value);
});
The latest version in npm (1.9.1) is broken.
The app crashes as soon as you select the value in the sheet with the following error in adb logs
Illegal callback invocation from native module. This callback type only permits a single invocation from native code.
The error occurs because RN allows the action press callback to be invoked only one time, but with the latest feature, which adds a callback invocation on cancel press, the callback gets executed twice, which causes a crash.
For anyone stumbling across this - install version 1.8.1.
This is a very handy bottom sheet because it support both iOS and Android but when importing you using import BottomSheet from 'react-native-bottom-sheet'; instead of import BottomSheet from 'react-native-bottomsheet';
Took me a long time to figure out what the problem was.
Using showBottomSheetWithOptions crashes the app.
Tried the Example code:
BottomSheet.showBottomSheetWithOptions({
options: ['Option 1', 'Option 2', 'Option 3'],
title: 'Demo Bottom Sheet',
dark: true,
cancelButtonIndex: 3,
}, (value) => {
alert(value);
})
Using "react-native": "0.45.1"
"react-native-bottomsheet": "^1.4.0",
Cannot build with react native 0.47.1
and react-native-bottomsheet 1.5.0
:
../node_modules/react-native-bottomsheet/android/src/main/java/com/clipsub/rnbottomsheet/RNBottomSheetPackage.java:28: error: method does not override or implement a method from a supertype
Is it planned to have styling ability for the title? Or message? (buttons would be an awesome bonus too)
Thanks for this awesome module!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.