-
-
Notifications
You must be signed in to change notification settings - Fork 771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Roadmap for v2 ( Reanimated v1 ) #75
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
hi @Angelk90 , thanks for testing Alpha 3 👏
I have fixed this issue with Alpha 4, let me know if its still happening.
hmm not sure if i understand correctly , but please open an issue and i'll try to help :)
look at custom handle in |
@gorhom : Version Alpha 4 With the new update it is giving me the following problem, the bottom-sheet at the bottom doesn't take the background color. I am using present. Index: const bottomSheetTheme = useCallback(
(newValue, id) => {
present(<ThemeModal darkMode={darkMode} onChange={handleThemeChange} />, {
snapPoints: ['50%'],
animationDuration: 800,
overlayComponent: BottomSheetOverlay,
overlayOpacity: 0.5,
dismissOnOverlayPress: true,
animationEasing: Easing.out(Easing.exp),
handleComponent: handleModal,
});
},
[settings],
); ThemeModal: import React, { useState } from 'react';
import { View, TouchableWithoutFeedback } from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { Text } from 'react-native-paper';
import { useTheme } from '@/Theme';
import { useTranslation } from 'react-i18next';
const ThemeModal = ({ darkMode, onChange }) => {
const { t } = useTranslation();
const { bottom: bottomSafeArea } = useSafeAreaInsets();
const { Gutters, Layout, Colors, Svgs } = useTheme();
const [scheme, setScheme] = useState(darkMode);
const changeButtonTheme = (value) => {
setScheme(value);
if (onChange) onChange(value);
};
const list = [
{ title: 'Light', value: false },
{ title: 'Dark', value: true },
{ title: t('automatically'), value: null },
];
const backgroundColor = Colors.backgroundPrimary;
return (
<View
style={{
flex: 1,
backgroundColor,
//paddingBottom: bottomSafeArea,
}}>
{list.map(({ title, value }) => {
return (
<TouchableWithoutFeedback
key={value}
onPress={() => {
changeButtonTheme(value);
}}>
<View
style={[
Layout.row,
Layout.rowHCenter,
Gutters.tinyVMargin,
Gutters.tinyHMargin,
]}>
<View style={[Layout.fill]}>
<Text>{title}</Text>
</View>
{scheme === value ? (
<Svgs.RadioButton size={32} color={backgroundColor} />
) : (
<Svgs.RadioButtonEmpty size={32} color={backgroundColor} />
)}
</View>
</TouchableWithoutFeedback>
);
})}
</View>
);
};
export default ThemeModal; |
This comment has been minimized.
This comment has been minimized.
I just released Alpha 6 to fix minor bug reported by @Angelk90 yarn add @gorhom/bottom-sheet@2.0.0-alpha.6 also check out the new documents website ( still in progress ) 🎉 |
Hi, I've found this problem during compilation now with alpha.6 |
@YNV6YXR1 try to remove the library and install it again. the path |
Hi, absolutely loving Alpha 6 & the new docs site 👍 I've just been having two issues. First small one is that The second issue is a slightly larger one - I think these issues may have arisen around the major refactor in alpha 4, as I only just updated from 3 -> 6 and came across them The rest of the new changes are great, thanks for maintaining such a good lib! |
@adamsoutar , first thanks for testing and giving your feedback, that helps a lot 👏
good point , actually it is working as expected , there will be a small transition due to the calculating the I think it would be a good idea to provide a tips page where i would explain this in details.
for android touchables elements , please have a look at Pressables / Touchables are not working on Android. but for normal user interaction with content while the sheet is not on the last snap point, that is something i'll for sure add! |
I just released Alpha 7 that fixes:
yarn add @gorhom/bottom-sheet@2.0.0-alpha.7 also check out the new documents website ( still in progress ) 🎉 |
Thanks for the quick reply :) Yeah, I was aware of the thing with replacing Touchables on Android, but having |
@adamsoutar i think this enhancement would be a great addition to the library , unfortunately i don't think it will be shipped with v2 release at least the first stable release. |
Thanks @adamsoutar , @Angelk90 for helping in testing this release 👏 |
@gorhom First off, thanks for the great lib! I just want to double-check: is |
hi @heejongahn , unfortunately
hopefully this is the last major breaking changes release |
@gorhom Thanks for the quick reply! It's a bit sad news for me but the reason is understandable... As you're here, I've got another question. When using const TestContext = React.createContext(false);
const MyBottomSheet = () => {
const canAccessContext = useContext(TestContext);
return <Text>{`${canAccessContext}`}</Text>
}
const MyComponent = () => {
return (
<TestContext.Provider value={true}>
<MyBottomSheet />
</TestContext.Provider>
);
} and |
I don't know if I'm writing in the correct place, the bug with elevation elements on Android is still persisting. I've seen somewhere on your repo a report, but it was closed. I'm using v2 of the module, and elements with elevation, override my bottom sheet. On IOS, elements with elevation are going behind the bottom sheet. |
Bottom Sheet v2 ( Reanimated v1 )
These are the planned improvements and features for v2.
Improvements
[blocker] ExtractBottomSheetModal
into a separate repository and package, or refactor repository to become a monorepo.Features
animateOnMount
prop to snap to the initial snap point index when the sheet is mounted. (feat: added animateOnMount prop #78)enableContentPanningGesture
prop to allow panning sheet by its content view or scrollables. dragFromHandleOnly #55[not blocker] Allow scrollables bouncing.BottomSheetModal
to make it declarative component, using@gorhom/portal
.Install Stable Release
also check out the new documents website ( still in progress ) 🎉
The text was updated successfully, but these errors were encountered: