Skip to content
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

Question stacks #28

Closed
AlexCernik opened this issue Dec 26, 2021 · 4 comments
Closed

Question stacks #28

AlexCernik opened this issue Dec 26, 2021 · 4 comments

Comments

@AlexCernik
Copy link

AlexCernik commented Dec 26, 2021

hi, is possible create stacks statics? without reload or onEndReached?

Is possible disable this option?

my stack

const first = () => {
  return (
    <View style={{flex:1}}>
      <Text>Hola</Text>
      ...
    </View>
  );
}
@itenl
Copy link
Owner

itenl commented Dec 26, 2021

hi, is possible create stacks statics? without reload or onEndReached?

Is possible disable this option?

my stack

const first = () => {
  return (
    <View style={{flex:1}}>
      <Text>Hola</Text>
      ...
    </View>
  );
}

It is not currently supported, but this suggestion is good idea, the functional component will be more flexible, and will be supported in the future, onRefresh / onEndReached will be converted to useRefresh / useEndReached.

@AlexCernik
Copy link
Author

AlexCernik commented Dec 27, 2021

and i too are received warning:
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method. in ScrollableTabView

@itenl
Copy link
Owner

itenl commented Dec 27, 2021

and i too are received warning: Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method. in ScrollableTabView

i trying to find the wrong location, and u can try to use patch-package to make temporary corrections.

 componentWillUnmount() {
    this.setState = (state, callback) => {
      return;
    };
  }

@itenl
Copy link
Owner

itenl commented Apr 7, 2022

Hey @AlexCernik regarding the use of onRefresh / onEndReached in the function component, v1.1.7 already supported.
refer to
And in the function component, must call initScreen.

@itenl itenl closed this as completed Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants