File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import warning from "tiny-warning";
77/**
88 * The public API for a <Router> that uses HTML5 history.
99 */
10- class BrowserRouter extends React . PureComponent {
10+ class BrowserRouter extends React . Component {
1111 history = createHistory ( this . props ) ;
1212
1313 render ( ) {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import warning from "tiny-warning";
77/**
88 * The public API for a <Router> that uses window.location.hash.
99 */
10- class HashRouter extends React . PureComponent {
10+ class HashRouter extends React . Component {
1111 history = createHistory ( this . props ) ;
1212
1313 render ( ) {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { BackHandler } from "react-native";
33
44import { __HistoryContext as HistoryContext } from "react-router" ;
55
6- class BackButton extends React . PureComponent {
6+ class BackButton extends React . Component {
77 handleBack = ( ) => {
88 if ( this . history . index === 0 ) {
99 return false ; // home screen
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { __HistoryContext as HistoryContext } from "react-router";
55
66const protocolAndSlashes = / .* ?: \/ \/ / g;
77
8- class DeepLinking extends React . PureComponent {
8+ class DeepLinking extends React . Component {
99 push ( url ) {
1010 const pathname = url . replace ( protocolAndSlashes , "" ) ;
1111 this . history . push ( pathname ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import PropTypes from "prop-types";
44
55import { __HistoryContext as HistoryContext } from "react-router" ;
66
7- export default class Link extends React . PureComponent {
7+ export default class Link extends React . Component {
88 static defaultProps = {
99 component : TouchableHighlight ,
1010 replace : false
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ const PARENT_TRAVEL_DISTANCE = 100;
7676const PARENT_FINAL_OPACITY = 0.25 ;
7777const CARD_SHADOW_RADIUS = 10 ;
7878
79- class AnimatedStack extends React . PureComponent {
79+ class AnimatedStack extends React . Component {
8080 static propTypes = {
8181 title : PropTypes . any ,
8282 content : PropTypes . any ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { View } from "react-native";
44
55import Link from "../Link.js" ;
66
7- export class TabRoutes extends React . PureComponent {
7+ export class TabRoutes extends React . Component {
88 render ( ) {
99 const { children } = this . props ;
1010 return (
@@ -36,7 +36,7 @@ export class TabRoutes extends React.PureComponent {
3636 }
3737}
3838
39- export class TabRoute extends React . PureComponent {
39+ export class TabRoute extends React . Component {
4040 render ( ) {
4141 const { renderContent, path } = this . props ;
4242 return < Route path = { path } render = { renderContent } /> ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
1010 Prompt
1111} from "react-router-native" ;
1212
13- class ReactRouterNative extends React . PureComponent {
13+ class ReactRouterNative extends React . Component {
1414 render ( ) {
1515 return (
1616 < NativeRouter >
Original file line number Diff line number Diff line change 11import React from "react" ;
22
3- class Lifecycle extends React . PureComponent {
3+ class Lifecycle extends React . Component {
44 componentDidMount ( ) {
55 if ( this . props . onMount ) this . props . onMount . call ( this , this ) ;
66 }
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import Router from "./Router.js";
88/**
99 * The public API for a <Router> that stores location in memory.
1010 */
11- class MemoryRouter extends React . PureComponent {
11+ class MemoryRouter extends React . Component {
1212 history = createHistory ( this . props ) ;
1313
1414 render ( ) {
You can’t perform that action at this time.
0 commit comments