File tree Expand file tree Collapse file tree 14 files changed +15
-15
lines changed Expand file tree Collapse file tree 14 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import warning from "tiny-warning";
7
7
/**
8
8
* The public API for a <Router> that uses HTML5 history.
9
9
*/
10
- class BrowserRouter extends React . PureComponent {
10
+ class BrowserRouter extends React . Component {
11
11
history = createHistory ( this . props ) ;
12
12
13
13
render ( ) {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import warning from "tiny-warning";
7
7
/**
8
8
* The public API for a <Router> that uses window.location.hash.
9
9
*/
10
- class HashRouter extends React . PureComponent {
10
+ class HashRouter extends React . Component {
11
11
history = createHistory ( this . props ) ;
12
12
13
13
render ( ) {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { BackHandler } from "react-native";
3
3
4
4
import { __HistoryContext as HistoryContext } from "react-router" ;
5
5
6
- class BackButton extends React . PureComponent {
6
+ class BackButton extends React . Component {
7
7
handleBack = ( ) => {
8
8
if ( this . history . index === 0 ) {
9
9
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";
5
5
6
6
const protocolAndSlashes = / .* ?: \/ \/ / g;
7
7
8
- class DeepLinking extends React . PureComponent {
8
+ class DeepLinking extends React . Component {
9
9
push ( url ) {
10
10
const pathname = url . replace ( protocolAndSlashes , "" ) ;
11
11
this . history . push ( pathname ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import PropTypes from "prop-types";
4
4
5
5
import { __HistoryContext as HistoryContext } from "react-router" ;
6
6
7
- export default class Link extends React . PureComponent {
7
+ export default class Link extends React . Component {
8
8
static defaultProps = {
9
9
component : TouchableHighlight ,
10
10
replace : false
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ const PARENT_TRAVEL_DISTANCE = 100;
76
76
const PARENT_FINAL_OPACITY = 0.25 ;
77
77
const CARD_SHADOW_RADIUS = 10 ;
78
78
79
- class AnimatedStack extends React . PureComponent {
79
+ class AnimatedStack extends React . Component {
80
80
static propTypes = {
81
81
title : PropTypes . any ,
82
82
content : PropTypes . any ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { View } from "react-native";
4
4
5
5
import Link from "../Link.js" ;
6
6
7
- export class TabRoutes extends React . PureComponent {
7
+ export class TabRoutes extends React . Component {
8
8
render ( ) {
9
9
const { children } = this . props ;
10
10
return (
@@ -36,7 +36,7 @@ export class TabRoutes extends React.PureComponent {
36
36
}
37
37
}
38
38
39
- export class TabRoute extends React . PureComponent {
39
+ export class TabRoute extends React . Component {
40
40
render ( ) {
41
41
const { renderContent, path } = this . props ;
42
42
return < Route path = { path } render = { renderContent } /> ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
10
10
Prompt
11
11
} from "react-router-native" ;
12
12
13
- class ReactRouterNative extends React . PureComponent {
13
+ class ReactRouterNative extends React . Component {
14
14
render ( ) {
15
15
return (
16
16
< NativeRouter >
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
3
- class Lifecycle extends React . PureComponent {
3
+ class Lifecycle extends React . Component {
4
4
componentDidMount ( ) {
5
5
if ( this . props . onMount ) this . props . onMount . call ( this , this ) ;
6
6
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import Router from "./Router.js";
8
8
/**
9
9
* The public API for a <Router> that stores location in memory.
10
10
*/
11
- class MemoryRouter extends React . PureComponent {
11
+ class MemoryRouter extends React . Component {
12
12
history = createHistory ( this . props ) ;
13
13
14
14
render ( ) {
You can’t perform that action at this time.
0 commit comments