-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
Cannot access 'computeOffsetIfDataChanged' before initialization #729
Comments
Hey @AshishAcharya083! I'm here to help you with any bugs or questions you might have while waiting for a human maintainer. Let me know how I can assist you! I couldn't find a specific solution to the "Cannot access 'computeOffsetIfDataChanged' before initialization" error in the repository. However, this type of error in JavaScript or React Native typically occurs when you try to use a variable or function before it has been declared or initialized. Here are some general steps you can take to troubleshoot and potentially resolve this issue:
If these steps do not resolve the issue, you might want to look into similar issues that have been reported. For instance, there is an open issue where a similar problem was noted, and it was suggested that the problem might not occur when the debugger is not in use [2]. Additionally, checking the configuration of |
I am using v4.0.0-canary.22 and this is happening to me as well, but only in a web browser. The same code runs fine on a physical iOS device. My code is very simple, using expo navigation template with the carousel example from the usage section. |
I'm getting ths issue as well on my iPhone |
any updates? |
Its some kind of build issue where in the compiled files the exports are above the definitions causing errors. |
`import { Text, View, StyleSheet, FlatList, Dimensions } from 'react-native';
import { dummyHomePageTopCard } from '../../data/dummyData';
import Carousel from 'react-native-reanimated-carousel';
import ActionButtonCard, {
ActionButtonCardsProps
} from '../cards/ActionButtonCard';
export function ActionButtonCardsList() {
const width = Dimensions.get('window').width;
return (
<View style={{ flex: 1 }}>
<Carousel
loop
width={200}
height={300}
// autoPlay={true}
data={dummyHomePageTopCard}
scrollAnimationDuration={1000}
onSnapToItem={(index) => console.log('current index:', index)}
renderItem={({ item }) => {
return (
);
}}
/>
);
}
export default ActionButtonCardsList;
const styles = StyleSheet.create({
listStyle: {
width: '100%',
marginTop: 30
}
});
`
Describe the bug
A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: