How to use the react-native-paper.withTheme function in react-native-paper

To help you get started, we’ve selected a few react-native-paper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alphasp / pxview / src / components / SearchHistory.js View on Github external
item}
          renderItem={this.renderItem}
          ItemSeparatorComponent={Separator}
          keyboardShouldPersistTaps="always"
          removeClippedSubviews={false} // to prevent flatlist hidden after switch language
          onScroll={Keyboard.dismiss}
        />
      
    );
  }
}

export default withTheme(connectLocalization(SearchHistory));
github ferrannp / react-native-spotify-streamer / src / App.js View on Github external
>
        
        {!!accessToken && this.renderBody()}
      
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    paddingTop: Platform.OS === 'ios' ? 24 : 0,
  },
});

export default withTheme(App);
github HenryQuan / WoWs-Info-Re / WoWsInfo / src / page / settings / Settings.js View on Github external
container: {
    flex: 1
  },
  bottom: {
    position: 'absolute',
    left: 0,
    right: 0,
    bottom: 0,
  },
  tint: {
    height: 36, width: 36, 
    borderRadius: 18, 
  }
});

export default withTheme(Settings);
github appitr / awesome-react-native-boilerplates / react-router-native_tabs_react-native-paper / src / screens / Home.js View on Github external
}
}

const styles = StyleSheet.create({
    container: {
        flex: 1
    },
    content: {
        padding: 4
    },
    card: {
        margin: 4
    }
});

export default withTheme(Home);
github alphasp / pxview / src / screens / MyPage / Settings.js View on Github external
};

  render() {
    const { theme } = this.props;
    return (
      
        {this.renderList(settingsList)}
        {this.renderList(otherList)}
      
    );
  }
}

export default withTheme(
  connectLocalization(
    connect(
      state => ({
        initialScreenId: state.initialScreenSettings.routeName,
        lang: state.i18n.lang,
      }),
      modalActionCreators,
    )(Settings),
  ),
);
github alphasp / pxview / src / screens / Shared / Detail.js View on Github external
/>
            
          
        
      
    );
  }
}

export default withTheme(
  enhanceSaveImage(
    connect(
      () => {
        const getDetailItem = makeGetDetailItem();
        return (state, props) => {
          const item = getDetailItem(state, props);
          const isMuteUser = item
            ? state.muteUsers.items.some(m => m === item.user.id)
            : false;
          const {
            illust_id: illustIdFromQS,
            illustId,
            items,
            index,
            onListEndReached,
            parentListKey,
github HenryQuan / WoWs-Info-Re / WoWsInfo / src / app.js View on Github external
}

  handleBack = () => {
    if (Actions.state.routes.length == 1) {
      BackHandler.exitApp();
    }
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1
  },
});

export default withTheme(App);
github kognise / repl.it-mobile / components / dialogButtons / fabs / NewRepl.js View on Github external
import React, { Component } from 'react'
import Fuse from 'fuse.js'
import { View } from 'react-native'
import { FAB, Dialog, Portal, Button, Text, withTheme } from 'react-native-paper'

import { fetchLanguages, createRepl } from '../../../lib/network'
import FormInput from '../../customized/FormInput'

export default withTheme(
  class extends Component {
    state = {
      dialogOpen: false,
      title: '',
      language: '',
      error: null,
      loading: false
    }

    render() {
      return (
github alphasp / pxview / src / components / IllustList.js View on Github external
refreshControl={
              
            }
            showsVerticalScrollIndicator={
              showsVerticalScrollIndicator !== null
                ? showsVerticalScrollIndicator
                : true
            }
          />
        ) : null}
      
    );
  }
}

export default withTheme(
  withNavigation(
    connect(
      null,
      bookmarkIllustActionCreators,
    )(IllustList),
  ),
);
github callstack / react-native-paper / example / src / Examples / ProgressBarExample.tsx View on Github external
);
  }
}
const styles = StyleSheet.create({
  container: {
    flex: 1,
    padding: 16,
  },

  row: {
    marginVertical: 10,
  },
});

export default withTheme(ProgressBarExample);