Comments (7)
Hey @giovanni-caiazzo,
I have tried to reproduce the bug using your repository, but without success. Can you provide more details, such as a recording of the issue, or specifying: device, OS version, simulator/emulator/physical device, that might help reproduce the bug?
from react-native-paper.
Hi @seb-zabielski thank you for looking into this. I'm using an Apple Mini with an M1 chip, building on a physical android device, a fairphone 5. I'm surprised that the issue does not appear for you. I will try asap to reproduce it on a different computer using the simulator or another phone and record the issue.
from react-native-paper.
I tried using my Framework with Ubuntu 24.04 but I see the same issue on my device. Here is the recording. Hopefully it helps.
When the screen flashes white I rebundled the android package by pressing A on the terminal where the expo-dev-client is running.
https://github.com/callstack/react-native-paper/assets/52694654/31a211fd-801e-4585-b31b-470e10dbaa53
As shown in the video, at first the sticky header is not working, but when I remove the react native paper imports and reload the app the sticky header is working again.
from react-native-paper.
@giovanni-caiazzo I checked again and actually managed to reproduce the bug. Previously I was running the application using expo go, so the error did not occur (after switching to development build I was able to reproduce it). It turns out that it is not related to react-native-paper, but the new architecture enabled.
I did small test on an empty project and it turns out that Animated with useNativeDriver: true
and newArchEnabled=true
somehow affects the SectionList. Here is an example. The result is the same as in your case. All the react-native-paper components you listed use Animated, which is why the error appears.
import React from 'react';
import {Animated, SectionList, StyleSheet, Text} from 'react-native';
const TEST_DATA = Array(6).fill({
title: 'test Title',
data: Array(15).fill({
name: 'data name',
}),
});
function App(): React.JSX.Element {
const testRef = React.useRef<Animated.Value>(new Animated.Value(0));
React.useEffect(() => {
Animated.timing(testRef.current, {
toValue: 1,
duration: 150,
useNativeDriver: true,
}).start();
}, []);
return (
<SectionList
sections={TEST_DATA}
stickySectionHeadersEnabled={true}
renderItem={() => <Text>item</Text>}
renderSectionHeader={({section: {title}}) => (
<Text style={styles.sectionTitle}>{title}</Text>
)}
/>
);
}
const styles = StyleSheet.create({
sectionTitle: {
fontSize: 20,
textTransform: 'uppercase',
paddingLeft: 5,
backgroundColor: 'yellow',
},
});
export default App;
from react-native-paper.
Thank you @seb-zabielski for checking that out! What does that mean though, should I go open this ticket in the react-native
repo?
from react-native-paper.
This seems to be the best option.
from react-native-paper.
Created the issue! facebook/react-native#45229
from react-native-paper.
Related Issues (20)
- Text is truncated when nested with different sizes. HOT 1
- TextInput not styling properly on version 5.12.4 HOT 3
- Select component?
- Fab.Group forgot to remove the click event of the fab label
- Tootip import module error HOT 3
- Multiline TextInput backgroundColor does not fully cover surface HOT 3
- After deleting a letter from the text input, the cursor will move back one letter's position HOT 2
- @react-native-vector-icons monorepo as new default?
- Getting error when running example project: ApiV2Error: Entity Not Authorized. HOT 1
- Add support or recommendation for Material Symbols icons
- AnimatedFab Label Styling (Web)
- Text Input supporting text
- Label is hidden when a multiline TextInput is focused on iOS HOT 3
- Why the more Card components I have, the more elevated they are?
- Button pressable area is short because label is short
- Replace the padding horizontal in segmented buttons. The padding is too big here. Or please enable the user to control the padding HOT 1
- [iOS] Long text in `<Searcbar/>` wraps on a new line and breaks layout
- Text gets cut in half (vertically) for DataTable.Title
- Badge errors with Text strings must be rendered within a <Text> component HOT 1
- [Android] Wrong menu position in Menu component HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-paper.