GithubHelp home page GithubHelp logo

native-base-docs's Introduction

{% include "/docs/introduction/README.md" %}

native-base-docs's People

Contributors

agent3bood avatar akhil-ga avatar amritms avatar arman92 avatar carlospalf avatar deadbeef404 avatar derrikmilligan avatar devt3000 avatar dipanshkhandelwal avatar franzejr avatar himanshu-satija avatar igoroctaviano avatar jasbir23 avatar jt6161 avatar karszawa avatar leeuwerck avatar leocp avatar mattfwood avatar misteroak avatar pabloharger avatar plabanjr avatar royracer avatar sanketsahu avatar sankhadeeproy007 avatar sebflipper avatar shivrajkumar avatar supriyakalghatgi avatar suvenduchhatoi avatar talor-a avatar terrierscript 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

Watchers

 avatar  avatar  avatar  avatar  avatar

native-base-docs's Issues

I can't make this work!!

So, native-base-theme has been copied great.

I set my StyleProvider , then thats it ? right ? i should have a theme right ?

How can I set custom onPress ?

Toast.show({
              supportedOrientations: ['potrait','landscape'],
              text: 'Wrong password!',
              position: 'bottom',
              buttonText: 'Okay',
              onPress: () => { console.log('pressed') }
            })

flex not working on DeckSwiper component

My deck swipper component is in the view with red border. It has flex:1, but this is not working (see the picture).

capture d ecran 2018-07-21 a 12 48 51

`<DeckSwiper
style={{flex:1, borderWidth:10, borderColor:'green'}}
looping = {false}
dataSource={this.getStack()}
renderItem={item =>

  <Card style={{  paddingTop:50,flex:1, backgroundColor: 'white', alignItems: 'center', borderRadius: 20, borderWidth:10, borderColor:'yellow'}}>
                          <CardItem style={{backgroundColor: 'transparent'}}>
                            <View style={styles.titleText}>
                              <Text style={styles.textTitle}>{item.name}</Text>
                            </View>
                          </CardItem>
  </Card>

}
onSwipeRight={() => this.updateDeckSize()}
onSwipeLeft={() => this.updateDeckSize()}
/>`

Thanks for helping

Header with searchbar

How do i make an header with left body right tags and a searchbar on a new line?
Something like this.

image1

Missing Input Doc

Hello!

I was working on a project based off a theme from the Native Base marketplace, however, there is no documentation for the "Input" component. Has anyone added this?

type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

i have this error when use native-base component Drawer.
Error message:
React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

ender() {

return (

<Drawer
ref={(ref) => { this.drawer = ref; }}
content={<SideBar {...this.props}/>}
>
    <View style={styles.container}>
         <Header left='menu' openDrawer={()=>{this.drawer._root.open();}} title={'abc'}/>
         <Content>
              <View style={{flex: 3, backgroundColor:'blue'}} >
               </View>         
          </Content>
    </View>
</Drawer>

);
}

"react-native": "0.56.0",
"native-base": "^2.7.1"

Picker documentation seems misleading

The Picker documentation seems to imply that it works consistently on both iOS and Android but I took a look at the implementation and it looks quite different for each platform. These differences of implementation should be reflected in the documentation maybe?

DeckSwiper doesn't respect datasource changes at the renderItem level

Context: NB v2.8.1

For the given dataSource array (e.g. ds) if the change important to the component user appears in one of the renderItem's properties (e.g. peoperty1) and the whole system respect it, the only component which does not respect the change is Deck Swiper, e.g.

const ds= [
  {
     property1: false,
     ...
   },
   { //active card
     property1: false, // -> true value when the state changes
     ...
   },
   ... 
];

I work with redux and I follow the Redux Immutable Data Modification Patterns. Just before render the ds is properly changed, but Deck Swiper doesn't want to show it on active card. To make the change visible, I have to swipe the card first, but it's not an option for an user experience.

Header With Badge

Is it possible to have an icon with a badge in the header?

Something like this:

            <Button badge transparent onPress={() => this.goNotification()}>
              <EvilIcons
              active
                name="bell"
              />
              <Text>5</Text>
            </Button>

Exactly like the image below, but just for the header instead of the footer.

image

Drawer.md is not up-to-date

Hi there, apparently Drawer.md is not up-to-date. the version of native-base i am using is 2.8.1

	interface Drawer {
		acceptDoubleTap?: boolean;
		acceptPan?: boolean;
		acceptTap?: boolean;
		captureGestures?: boolean;
		children?: any;
		open?: boolean;
		closedDrawerOffset?: number;
		content?: any;
		deviceScreen?: ReactNative.ScaledSize;
		disabled?: boolean;
		initializeOpen?: boolean;
		negotiatePan?: boolean;
		onClose?: Function;
		onCloseStart?: Function;
		onOpen?: Function;
		onOpenStart?: Function;
		openDrawerOffset?: number;
		openDrawerThreshold?: number;
		panCloseMask?: number;
		panOpenMask?: number;
		panStartCompensation?: boolean;
		relativeDrag?: boolean;
		side?: "left" | "right";
		styles?: DrawerStyles;
		tapToClose?: boolean;
		tweenDuration?: number;
		tweenEasing?: string;
		tweenHandler?: Function;
		type?: "overlay" | "static" | "displace";
	}

please advise.

Round corner on Card

Hi,

I want to apply a round corner on Card component. I try with a style but style seems to be not applied to Card. Do you have any tips to do this ?

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.