Open Moazam05 opened 1 month ago
"Position Bottom Issues" any fix?
"react-native": "0.76.1",
Hi @FernandoAOborges,
For the "Position Bottom Issues," I noticed you mentioned react-native: "0.76.1"
In my project, I'm using
react-native-toast-message@2.2.0
react-native: "0.75.4"
I managed to address the bottom positioning issue by applying a patch using patch-package to adjust the Toast.d.ts, AnimatedContainer.styles.js, and index.d.ts files.
Hi @FernandoAOborges,
For the "Position Bottom Issues," I noticed you mentioned
react-native: "0.76.1"
In my project, I'm using
react-native-toast-message@2.2.0
react-native: "0.75.4"
I managed to address the bottom positioning issue by applying a patch using patch-package to adjust the Toast.d.ts, AnimatedContainer.styles.js, and index.d.ts files.
I tested it and it didn’t work for the version react-native: '0.76.1'.
Hi @FernandoAOborges, For the "Position Bottom Issues," I noticed you mentioned
react-native: "0.76.1"
In my project, I'm usingreact-native-toast-message@2.2.0
react-native: "0.75.4"
I managed to address the bottom positioning issue by applying a patch using patch-package to adjust the Toast.d.ts, AnimatedContainer.styles.js, and index.d.ts files.I tested it and it didn’t work for the version react-native: '0.76.1'.
It's working fine with react-native '0.76.1'
<Toast config={toastConfig} />
import React from 'react';
import { StyleSheet } from 'react-native';
import { ErrorToast, SuccessToast } from 'react-native-toast-message';
const toastConfig = {
error: (props) => (
<ErrorToast
style={styles.bgError}
text1Style={styles.textError}
text2Style={styles.textError}
{...props}
/>
),
success: (props) => (
<SuccessToast
style={styles.bgSuccess}
text1Style={styles.textSuccess}
text2Style={styles.textSuccess}
{...props}
/>
),
};
const styles = StyleSheet.create({
bgError: {
borderLeftColor: '#36E517',
backgroundColor: '#F2F20C',
borderRightColor: '#ffff00',
borderTopColor: '#ffff00',
borderBottomColor: '#ffff00',
borderWidth: 1,
},
textError: {
color: '#323332',
fontFamily: 'Inter-SemiBold',
},
bgSuccess: {
borderLeftColor: '#ffff00',
backgroundColor: '#3CD921',
borderRightColor: '#ffff00',
borderTopColor: '#ffff00',
borderBottomColor: '#ffff00',
borderWidth: 1,
},
textSuccess: {
color: 'white',
},
});
export default toastConfig;
Everything here is completely bugged; it stays behind the status bar and doesn't respond to touch/move gestures.
same probleme for me , truncated toast with bottom params displayed in upper of the app for now i switched to "top" position until it's fixed
but close button don't close toast :(
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
react-native-toast-message@2.2.1
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.