Skip to content

Latest commit

 

History

History

bpk-component-boilerplate

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

bpk-component-boilerplate

Backpack React Native boilerplate component.

Installation

Check the main Readme for a complete installation guide.

Usage

import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import { spacingBase } from '@skyscanner/bpk-foundations-react-native/tokens/base.react.native';
import BpkBoilerplate from 'backpack-react-native/bpk-component-boilerplate';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    padding: spacingBase,
  },
});

export default () => (
  <View style={styles.container}>
    <BpkBoilerplate />
  </View>
);

Props

BpkBoilerplate

TODO - Add your component's prop types here.