Code Monkey home page Code Monkey logo

mrn's Introduction

http://mrn.js.org

A Material Design style React Native component library.

npm doc GitHub stars

Tips

This repository is no longer maintained because there is no time to maintain.

Recommend another one: React Native Material Design, which is heavily developed on top of the mrn project.

http://mrn.js.org/manual/installation.html#getting-started

You can visit http://mrn.js.org to look at the document.

Platform

  • Android :support Android 4.1+ (API 16+)
  • iOS : Don't have a plan for now

Demo

MaterialReactNative

Github:https://github.com/binggg/MaterialReactNative

Download APK

Screenshots

MRN Screenshots MRN Screenshots MRN Screenshots MRN Screenshots MRN Screenshots MRN Screenshots

License

This project is licenced under the MIT License.

mrn's People

Contributors

binggg avatar ehesp avatar mrcasals avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mrn's Issues

The page transition is slow

Slide out the drawer and click any menu item, Then, transition of the navigator is very slow.

Is this issue belong to ReactNative android?

List onPress replaces scroll in a ListView

When using the List component as the row component of a ListView, scroll is overwritten by the onPress event, so I cannot scroll properly. This is a screenshot of the emulator in the docs:

If the onPress event replaces the view, the scroll automatically replaces the view, so scroll is not possible.

Button tap doesn't bounce back its state

Let me explain this behaviour. This is in reference to #9 and #10. But, clearly this issue is with the button component.
When I click on the button, it doesn't bounce back to released state. It is stuck in pressed state.

Phone - Samsung Galaxy S4
OS version - 5.0.1 and 5.1.1 (Tested on both)

I will look into this as well, will pull a PR soon. Just wrote it here so as to keep track of things.

Use a Code Quality Tool like ESLint

How would you feel towards using some form of code quality tool like ESLint? After playing around with some of the components I feel that many of the files are differently formatted etc.

Happy to set it up if you'd like?

Strange artefact on tap on list/button

First of all -> really nice work, I like it! But I found issue on Samsung Galaxy S4 (Android 5). If you tap on list or button you have white square (artefact after tap). As you can see:

e4559970_snapshot_2015-12-02_09-56-27

Merge this project with material-ui?

Hi @binggg,

Lately, we have been talking about how to build a cross platform material implementation.
At first, I though that the best way to do it was to create a thrid repository to write wrapper components (abstract API differences).
However, now I'm convinced that it's better to have the different implementation in the same repository (always sync API and potentially shared code).

We have been doing a lot of changes in the material-ui repository recently.
I believe that we now have the needed infrastructures to start working on react-native:
mui/material-ui#2667

So here is my question, would merging this project back to material-ui makes sense to you?
If not, how do you think that the cross platform common API should be done?

@Ehesp I see that you have started working on https://github.com/react-native-material-design/react-native-material-design. Any insight would be valuable too.

Long press toggles the state of the component permanently

Hi,

Firstly I would like to say that this is one of the awesome projects of React native I have come across and would like to be an active contributor and tester of it.

One very common issue I come across using the Demo APK is -

One long press of any component, it changes the state of the component to pressed or selected state. And when I try to tap on it to release the state, I see patches of square/rectangular shaped selections. Only an outside tap gets the component deselected.

Screenshots-

Screenshot 1:
screenshot_2015-12-01-21-16-27

Screenshot 2:
screenshot_2015-12-01-21-15-33

Screenshot 3:
screenshot_2015-12-01-21-16-19

Possablity of an Demo APK

Is there any plan on including an apk on the repository/download link in the description, for some fast testing?

For those who aren't at their development station or just want to see what react native can do with "mrn"?

A couple of questions

Hello, and thanks for your work - your module looks very promising!
A couple of issues i've been running into (react-native 0.15)

  1. I wasn't able to install the module with
npm install react-native-material-design-components

as stated in the manual. It seems that the module is registered as "mrn":

npm install mrn
  1. Installing the module with the command above, and requiring it with
var mD = require('mrn');

i have the following error:

lib/Button.js: Unexpected token (50:24)

Am i missing something?

Fonts causes app stop working on iOS

The xCode logs:

[RCTConvert.m:635] Unrecognized font family 'Roboto,Noto,sans-serif'
[RCTConvert.m:635] Unrecognized font family 'Material Design Icons'

This project appears to be dead

I started installing and got to a point where I needed to change my public class MainActivity extends Activity implements DefaultHardwareBackBtnHandler but in RN 0.39.x (current version) that has been replaced by public class MainActivity extends ReactActivity {. Now I don't know how to install this.

On top of that the last commit was a year ago and there are references in Issues to problems with RN 0.16. Ouch.

Looks dead to me.

Add ability to hide Toolbar navIcon

PR #14 added the ability to overwrite the default Toolbar navIconName. I want to use a Toolbar without any navIcon, so I was thinking that the default behaviour could be no icon, and if the user wanted an icon then they would need to explicitly name it:

Toolbar without an icon:

        <Toolbar
          actions={this.props.actions}
          primary="paperLightBlue"
          title={this.props.title}
        />

Toolbar with an icon:

        <Toolbar
          navIconName="menu"
          actions={this.props.actions}
          primary="paperLightBlue"
          title={this.props.title}
        />

What do you think?

Error on install/setup

With a fresh install, I get the following error when following the instructions to install.

image

Using the latest version of the react-native cli tool.

I also get the logs:

W/ReactNativeJS( 1965): 'Warning: Native component for "RCTModalHostView" does not exist'
W/ReactNativeJS( 1965): 'ProgressBarAndroid has no propType for native prop AndroidProgressBar.indeterminate of native type boolean'

Provide fallback monospace font

When I visit the mrn.js.org website the code examples render in my browsers' generic serif font and not "Source Code Pro". It looks like:

checkbox_serif_fonts

Having a quick look through your CSS I can't see the font being loaded in. Only the Roboto webfont. No errors popup in the browser console either.

Beyond that worth backing up "Source Code Pro" with a reference to the monospace font-family in your CSS

pre.prettyprint, pre > code {
   font-family: "Source Code Pro", monospace;
}

etc.

Roadmap

As much as I like this project, I feel there's quite a bit which needs improving for it to be maintainable. Also, @binggg do you have time to manage this on your own? Anyway a list:

  • Support React 0.16 & Babel 6 - I have this working locally, #21 - however in my eyes the project should support 0.16.* only in my eyes, since there's some big changes in it.
  • Have React Native 0.16 as a peer dependancy
  • Linting files with ESLint (#15) - Loads of inconsistencies, unused code etc.
  • Fixing the Ripple state bug (#9)
  • Tests - currently it's hard to make changes to components because I have no idea if the change will break something else.
  • Documentation - Could do with some more examples/spell-checking etc
  • Contributing Guidelines
  • Have react-native-vector-icons as a project dependancy
  • Break this project down into an organisation? Would be better to have multiple repositories in the same place, although this is @binggg's call.

Please provide feedback on these, this project is easily the best material one out there at the moment, just needs some loving.

Errors after upgrading

I upgraded from React Native v0.14 to React Native v0.16, and I got some Babel errors:

Unknown option: node_modules/mrn/.babelrc.whitelist

If I delete this file, I get to compile the project. Any idea what's the issue here?

I'm using MRN @ master.

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.