react-native-navigation的迁移库

CustomNavBarScreen.js 686B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import React, {Component} from 'react';
  2. import {
  3. Text,
  4. View,
  5. ScrollView,
  6. TouchableOpacity,
  7. StyleSheet,
  8. Button
  9. } from 'react-native';
  10. export default class CustomNavBarScreen extends Component {
  11. static navigatorStyle = {
  12. drawUnderTabBar: true,
  13. navBarCustomView: 'example.CustomNavBar'
  14. };
  15. constructor(props) {
  16. super(props);
  17. }
  18. render() {
  19. return (
  20. <View style={styles.container}>
  21. </View>
  22. );
  23. }
  24. }
  25. const styles = StyleSheet.create({
  26. container: {
  27. flex: 1,
  28. padding: 20,
  29. backgroundColor: 'white'
  30. },
  31. button: {
  32. textAlign: 'center',
  33. fontSize: 18,
  34. marginBottom: 10,
  35. marginTop:10,
  36. color: 'blue'
  37. }
  38. });