say-hello-greetings

1.0.1 • Public • Published

say-hello

This npm package takes a name and outputs a string that is a greeting to that name. For example, if I called the npm package with the name Sarah I could get the greeting back "Kia ora Sarah" to display however I wish.

Example

  import React from 'react';
  import { StyleSheet, Text, View } from 'react-native';
  import SayHello from 'say-hello-greetings';

  export default function App() {
    return (
      <View style={styles.container}>
        <Text>{SayHello("World!")}</Text>
      </View>
    );
  }

  const styles = StyleSheet.create({
    container: {
      flex: 1,
      backgroundColor: '#fff',
      alignItems: 'center',
      justifyContent: 'center',
    },
  });

/say-hello-greetings/

    Package Sidebar

    Install

    npm i say-hello-greetings

    Weekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.71 kB

    Total Files

    4

    Last publish

    Collaborators

    • chelseas