react-native-navigation的迁移库

remx-support-component.js 423B

1234567891011121314151617181920212223
  1. import {Text} from 'react-native';
  2. import React, {Component} from 'react';
  3. import {connect} from 'remx/react-native';
  4. import * as store from './remx-support-store';
  5. class MyScreen extends Component {
  6. constructor(props) {
  7. super(props);
  8. this.renders = 0;
  9. }
  10. render() {
  11. this.renders++;
  12. const txt = store.selectors.getName();
  13. return (
  14. <Text>{txt}</Text>
  15. );
  16. }
  17. }
  18. export default MyScreen;