Giter VIP home page Giter VIP logo

playground's Introduction

react-native-elements

React Native Elements Playground ๐Ÿš€
React Native elements Playground is An interactive component playground. Which allows you to interact with different React Native Element Components.




React Native Elements UI Toolkit

Installation

  1. Clone the repo
git clone  https://github.com/react-native-elements/playground.git
cd playground
  1. Install NPM packages
npm i
  1. Prepare (File path is UNIX based, might not work with Windows. PR Appreciated)
npm run prepare
  1. Run the development server
npm start

Releated Projects

- React Native Elements
- React Native Elements Storybook
- React Native Elements App

Documentation

View the full docs of React Native elements here

Contributing

Interested in contributing to this repo? Check out our Contributing Guide and submit a PR for a new feature/bug fix.

First Contributors

We encourage everyone to contribute & submit PR's especially first-time contributors. Look for the label Good First Issue on the issues. Click here to see them.

If there is something you's like to see or request a new feature, please submit an issue or a pull request.

Slack Community

In case you have any other question or would like to come say Hi! to the RNE community, join our Slack team. See you on the other side! ๐Ÿ‘‹๐Ÿ˜ƒ

Backers

Become a backer and show your support for React Native Elements.

React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer

Sponsors

Do you use React Native Elements in production? If so, consider supporting this project as it will allow the maintainers to dedicate more time to maintaining this project and also building new features for everyone. Also, your app or company's logo will show on GitHub and link to your website - who doesn't want a little extra exposure? Here's the info.

React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer React Native Elements Backer

playground's People

Contributors

abhishekkumar08 avatar ahtrahdis7 avatar ankushdutt avatar arjun-sabu avatar arpitbhalla avatar flyingcircle avatar jugshaurya avatar khushal87 avatar nlok5923 avatar pranshuchittora avatar sachdeva-shrey avatar souviknsl07 avatar tewarig avatar uyadav207 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

playground's Issues

๐Ÿ› Bug: Error log is unaligned and breaking the UI of playground. (Need to make a hot-fix) for all components.

Explain what you did (Required)

  • I intentionally tried to create a compilation error on the playground.
  • The error popup was found breaking UI for the playground application.

Expected behavior (Required)

  • The error component should not break the UI.
  • This will cause the user un-comfortable while using the playground web app.

Describe the bug (Required)

  • The bug is breaking the UI of the Playground.

To Reproduce (Required)

https://react-native-elements.js.org/#/icon'

  • Steps
  1. Go to 'https://react-native-elements.js.org/#/icon'
  2. Try to create typos 'in the text editor of the playground'.
  3. Scroll down to 'Look to the top error components'

Screenshots (Required)

Screenshot from 2021-03-16 12-32-48

Expected: (screenshot)

Screenshot from 2021-03-16 12-43-31

@pranshuchittora, and @flyingcircle... I have started working on the bug to be fixed as early as possible?

Any suggestions are welcome @flyingcircle @pranshuchittora

chore: create pull request template

it would be good to have a pull request template setup which will help maintainer to extract some core/useful information from contributor about raised pull request.

Add Switch Component Support to the playground

Is your feature request related to a problem? Please Describe.
The Switch component is recently been introduced in the package. https://reactnativeelements.com/docs/next/switch. Therefore we would need a page here for the same to play with the component in the playground.

Describe the solution you'd like
Add a new Page for the Switch component.

Describe alternatives you've considered
There's no such alternative for the case.

Additional context
References:
https://reactnativeelements.com/docs/next/switch
react-native-elements/react-native-elements#2877

To Enable Deselection of item from side bar

Issue:
when we click on any component on sidebar ,we get directed to header page and header gets selected with grey coloured selection .Now, if we click on the playground title , we get redirected to home page , but header was still selected
image
image

Add Prop Explorer to all the components

Is your feature request related to a problem? Please Describe.

Currently, Prop Explorer is not available for most of the components in React Native elements.
only Avatar, Badge, Button have a prop explorer for not.
Airbnb Rating comp does have a PR #53 adding prop component to it.

Describe the solution you'd like

We should add Prop Explorer to all of the components. This would enhance the experience of PlayGround by a lot.

Describe alternatives you've considered

Additional context

demo

Feat: Adding prop explorer for AirBnB rating and all other props

Is your feature request related to a problem? Please Describe.

  • The props explorer for (AirBnB) is missing.

Describe the solution you'd like

  • Introducing AirbnbRating.mdx.

Additional context

  • Please see the bottom right corner.(no options for viewing props.)

Screenshot from 2021-03-12 12-32-30

@pranshuchittora, I would like to work on the above-mentioned issue. Already started working on it. Please assign me the task.
Thanks :)

Error in ToolTip Component in SideBar

Issue:
when clicking on hello there
Screenshot 2021-03-17 at 1 19 58 PM
Screenshot 2021-03-17 at 1 20 03 PM
The pop up shown needs proper alignment and styling .

Possible Solution:
1.Providing proper alignment to "hello there" area .
2. Applying styling so that "hello there" is clearly visible on the pop up area.

chore: Code Improvements

Description

The project is in its initial phase, and the code is written with an idea of move fast and break things. So there are many possible improvements. Mentioning some but not limited to these only ๐Ÿ˜„

  • Inline styling to the stylesheet
  • Proper Scoping and Abstraction of composable components.
  • Improve folder structure, if any
  • Improve UI/UX

Adding prettier as a dev dependency

Is your feature request related to a problem? Please Describe.
We can better add prettier to the repo: https://www.npmjs.com/package/prettier
So whenever we will run npm run format, It will automatically format the whole code.

Describe the solution you'd like
Adding prettier as a dev dependency as it will format all the code.

Describe alternatives you've considered

Additional context

chore: Issue templates

Description

The project do not have any issue template.

Requirements

  • bug_report.md
  • Pull_request_template.md
  • Feature_request.md

Adding a .prettierrc file

Why?

  • since many developers around the world are going to collaborate on this wonderful organisation/repo. Everyone should follow some convention.
  • on the plus side, it avoids unnecessary spaces, lines, indentations, No need to discuss style in code review, which Saves you time and energy.

Why I am opening this issue:-

  • Because I faced problems when I added this repo to my vscode editor. since settings of writing code are as per developer to developer, code unnecessary jumps from one line to another, making GitHub noticing it and adding insertion and deletion count, making the task of maintainers hard.

Solution:

  • just add a .prettierrc file to the project and voila! All developers are united into a single convention.

Adding upcoming RNE-component Playground : Tab

Adding new Playgrounds

Some new components are added into RNE this month, hence their playgrounds are missing, so I decided to add one of them called Tabs.

Since these components are going to be released in the next version, I was thinking of creating the next branch itself and adding the latest playgrounds there. What do you think? @pranshuchittora.

something like you did @react-native-elements/react-native-elements#2943,

Please look at the PR, I added Tab Component Playground there. Will be adding more New RNE Components after the discussion.

CheckBox: clicking on checkbox does nothing, `right` prop does nothing, leftIcon is not a valid prop for the component

Screen recording of the issue: https://www.loom.com/share/a51de785966c415fa91d2dfb410ba687

Expected behavior

  • Clicking on checkbox should change it's state to checked (preferably have it stateful)
  • right prop should move the checkbox to the right (as mentioned in the docs)
  • leftIcon should be removed

Describe the bug

  • right prop does nothing
  • leftIcon prop is not supported by CheckBox (its default position is left anyway)

To Reproduce

bug: injectProps.js not adding Props folder in content folder

Bug:
when new collaborator does npm i, they are not getting src/content/Props folder.

**Problem Details and possible solutions. **

  1. combine two exec functions into one
  2. Instead of exec use execSync

**Tested? **

  • Yes, It is working fine after the above-shown changes.
  • Adding both react-native-elements folder and Props Folder at appropriate positions.

Also solve Netlify build problem

WhatsApp Image 2021-03-25 at 1 46 03 PM

Lack of proper alignment between the Type and Default in the Props explorer

Explain what you did (Required)
When I open the Props Explorer I found that the alignment between the Types and Default is not well oriented and varies for every props. Therefore I feel it should be improved for better user experience while reading

Expected behavior (Required)
A better alignment between Types and Default values

Describe the bug (Required)
No proper alignment between the Types and Default for the Props explorer

To Reproduce (Required)
Click on Props explorer and it will be noticed that every prop has different/varied alignments

We highly recommend that you re-create the bug on Snack. If not, list the steps that a reviewer can take to reproduce the behaviour:

Example:
Potential fix is we can have a table view with rows and columns having proper border.

  • Steps
  1. Go to 'Avatar(for example)'
  2. Click on 'Props explorer on the bottom right corner'
  3. Scroll down to 'To the slider'
  4. See the issues as it is not uniform

Screenshots (Required)
Screenshot (15)

Your Environment (Required):

software version
react

Make footer components more interactive

Design make more interactive

In the footer sector text line is broken Cross-Platform React Native UI Toolkit and also this text Playground is using react-native-elements v3.0.0
The main goal is to make this line absolute in CSS property and make sure RNE_Logo has no change.
footer

Query: Does anyone have any solution for this?

I tried various things on the internet, nothing seems to work!
Screenshot from 2021-04-16 23-07-57

Also some loader missing problem.
Screenshot from 2021-04-16 23-10-40

I was trying to build the app after changing some settings(adding loader) inside config-overrides.js customized-cra and react-app-rewire

@pranshuchittora, any work around it?

Maintaining a11y

Issue main aim:

  • Accessibility plays a vital role in today's modern web world. Some a11y rules were broken
  • hence require fixing.

**Problems in the webapp **

  • a11y/alt-txt
  • a11y/accessible-emoji

one security concern

  • react/jsx-no-target-blank

Screenshot from 2021-03-13 19-49-24

Solution

  • adding span with role "img"
  • adding alt attribute to img tags
  • adding rel="noopener noreferrer"

Feat: Update Component Props

Is your feature request related to a problem? Please Describe.
There are some components whose props have been deprecated/not updated with the latest version 3.3.1.
For example, fractions prop is missing in the Rating component.

Describe the solution you'd like
These props would need to be updated in the playground.

Additional context
I would like to work on this issue.

bug:app not working

Description

After the recent #15 PR merge, the app isn't starting.

To Reproduce:

  1. run npm start

Screenshots

image

I found two ways to solve this error:

  • by removing the props folder from .gitignore and adding them again
  • by removing the local RNE repo from .gitignore and adding the required import path to each file.

PS: I have solved the error by both the methods listed if any better option present kindly mention it. Waiting for the confirmation then I will make the PR.
@pranshuchittora

Input : Placeholder text always displaying

Screenshot (2)
Here is the link of video pointing out the issue :- https://www.loom.com/share/1617cf3700884c14a235a6a4ef999b17

Visit https://react-native-elements.js.org/#/input
Go to placeholder input box
we can see there that evenafter clicking on input box under placeholder box ,the placeholder text is not disappearing.

Current Behaviour

The placeholder text is not diappearing after we start typing in the placeholder box.

Expected Behaviour

The placeholder text should disappear as soon as we start typing in it.

Need to make BottomSheet Component interactive

Hello @pranshuchittora, @flyingcircle ๐Ÿ‘‹ as currently there is no interactive BottomSheet in the Playground just we are passing default true to visible prop instead of doing this we can handle the state using the Button and make bottom sheet scope to the site instead of Compiler this way the BottomSheet component can be made more interactive to the user.

Would love to hear your thoughts on this and it would be great if you could assign this issue to me :)

bottomsheet

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.