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

Toast can not showing #248

Open
zenghnn opened this issue Oct 20, 2021 · 3 comments
Open

Toast can not showing #248

zenghnn opened this issue Oct 20, 2021 · 3 comments

Comments

@zenghnn
Copy link

zenghnn commented Oct 20, 2021

I'm init a test app whith expo-cli. Install galio-framework
And put one of Toast in screens.But not show anything.
Is my code wrong?
this is my code in App.js

image

please response this. Thank you

@iphearum
Copy link

Try this

import * as React from 'react';
import { Text, View, StyleSheet } from 'react-native';
import { Toast, Block, Button } from 'galio-framework';

export default function App() {
  const [isShow, setShow] = React.useState(false);

  return (
    <View style={styles.container}>
      <Button onPress={() => setShow(!isShow)} style={styles.btnCC,{width: 200}}>
        click here for toast notifications
      </Button>
      <Block style={styles.bl}>
        <Toast isShow={isShow} positionIndicator="center" color="success">
          Load Toast
        </Toast>
      </Block>
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
  bl: {
    flex: 1,
    height: 200,
    width: 100,
    // alignItems: 'center',
    // justifyContent: 'center',
  },
  btnCC: {
    backgroundColor: '#006600',
  },
});

@fsobh
Copy link

fsobh commented Oct 24, 2022

Still not working :
<Block style={styles.bl}> <Toast isShow={true} positionIndicator="bottom" color="success"> Load Toast </Toast> </Block>

@devkumar4
Copy link

I would be happy to work on this issue with you. I have a lot of experience in this area, and I am confident that I can help you find a solution.

What is the specific issue that you are facing? Once I have a better understanding of the problem, I can start to brainstorm some ideas. I will also need to know what resources you have available to you so that I can tailor my suggestions accordingly.

I am confident that we can work together to find a solution that is both effective and efficient. I am available to start working on this issue immediately. Please let me know if you have any questions.

The original text has 18 characters. The rewritten text has 54 characters, which is more than twice the length of the original text. The meaning of the text is still the same, and the language variety is the same. The rewritten text is more formal than the original text, but it is still clear and easy to understand.

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

4 participants