Coder Social home page Coder Social logo

deepaktiwari09 / react-native-socialcards Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.5 MB

Advanced Social-Card for React Native Community.

Home Page: https://rnsocialcard.tiwariux.com

JavaScript 2.16% TypeScript 97.84%
react react-native react-native-component

react-native-socialcards's Introduction

Badges

MIT License

react-native-socialcard

Advanced Social-Card for React Native Community. It is a React Native component that allows you to create a card for User Post with a Posttitle, description, image, and interaction buttons such as like, repost, retwitte and comment. It also comes with built-in Comment Section for per User post. Fully Dynamic and Responsive.

Features

  • Advanced Post Card
  • Built-in Comment Section
  • Built-in Fetch and Post Hooks for connection between cards and server
  • Have Data-Points for Data Analysis of User Engagement
  • Typescript Support
  • Cross platform

Demo

Alt Text

Installation

  npm install @tiwariux/rn-socialcard

Usage/Examples

import { SocialPostCard } from '@tiwariux/rn-socialcard'

export default function App() {
  return (
      <SocialPostCard
            CardmarginStyle={}
            AuthorData={}
            UserData={}
            onLikeClicked={}
            onRepostClicked={}
            onCommentLikeClicked={}
            onNewCommentDone={}

          />
    )
}

Import dummyData and Props

import { UserData, AuthorData } from "@tiwariux/rn-socialcard/socialpostCard/dummyData";
import { marginProp, AuthorPostPropType, UserPropType, PostCardPropType } from '@tiwariux/rn-socialcard/socialpostCard';

marginProp

type marginProp = { 
    top: number, 
    bottom: number, 
    left: number, 
    right: number 
}

AuthorPostPropType

type AuthorPostPropType = {
    authorId: number,
    authorImage: string,
    authorPostId: number,
    authorPostTitle: string,
    authorPostDescription: string,
    authorPostLikeCount: number,
    authorPostCommentCount: number,
    authorPostRepostCount: number,
    authorFollowCount: string,
    authorPostComment: {
        CommentId: number,
        CommentLikeCount: number,
        CommentDescription: string,
        CommentDate: string,
        CommentUserImage: string,
        CommenterUserName: string,
    }[],
}

UserPropType

type UserPropType = {
    currentUserId: number,
    currentUserName: string,
    currentUserImage: string,
}

PostCardPropTypes

type PostCardPropType = {
    CardmarginStyle: marginProp,
    AuthorData: AuthorPostPropType,
    UserData: UserPropType,
    onLikeClicked: (
        currentuserId: number,
        postId: number,
        authorId: number) => void,
    onRepostClicked: (
        currentuserId: number,
        postId: number,
        authorId: number) => void,
    onCommentLikeClicked: (
        currentuserId: number,
        postId: number,
        commentId: number,
        authorId: number) => void,
    onNewCommentDone: (
        comment: string,
        currentuserId: number,
        postId: number,
        authorId: number) => void,
}

Roadmap

Release 0.1.0

  • Adding React Hooks for fetching data and posting data to backend server.

  • Adding Redux-toolkit support for local state-management

  • Adding Animations.

Release 0.2.0

  • Adding Datapoints to Post for Backend Server to run Data Analysis of Post engagement and User Experience Analysis.

Issue and Feedback

have Any Issue Report is Here https://github.com/deepaktiwari09/react-native-SocialCards/issues

If you have any feedback, please reach out to us at [email protected]

Authors

Github Linkdin

react-native-socialcards's People

Contributors

deepaktiwari09 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.