Dec
3
2 days ago
Activity icon
issue

sushantb21 issue comment aksonov/react-native-router-flux

sushantb21
sushantb21

cannot consume props in functional components react hooks

"react-native-router-flux": "^4.2.0"

i have try to added params

Actions.Ikakoy({actives: 2})

but when i want to get the params using react hooks the value was undefined, my code is like this

......
import React, { useState, useEffect, useRef } from 'react'

const Ikakoy = (props) => {
    .........
    .........
   
    useEffect(()=>{
        console.log(props.actives) // i got undefined
        return () => { unmounted.current = true }
    },[])

    ........
}
export default Ikakoy

any solutions?

sushantb21
sushantb21
Nov
30
5 days ago
Activity icon
issue

cybercris issue comment aksonov/react-native-router-flux

cybercris
cybercris

warning header: null' will be removed in a future version. Use 'headerShown: false' instead

Tell us which versions you are using:

react-native-router-flux v4.3.1 react v16.13.1 react-native v0.63.4

Actual behavior im having this warning:

Deprecation in 'navigationOptions':

  • 'header: null' will be removed in a future version. Use 'headerShown: false' instead

any ideas how to solve?

cybercris
cybercris

Since it's still in react-navigation v4 and looks abandoned by the author, best go for react-navigation v5

Activity icon
fork

avacom forked aksonov/react-native-router-flux

⚡ The first declarative React Native router
avacom MIT License Updated
fork time in 4 days ago
Nov
29
6 days ago
Nov
26
1 week ago
Activity icon
fork

allenmanning forked aksonov/react-native-router-flux

⚡ The first declarative React Native router
allenmanning MIT License Updated
fork time in 1 week ago
Nov
25
1 week ago
Activity icon
fork

allenmanning forked aksonov/react-native-router-flux

⚡ The first declarative React Native router
allenmanning MIT License Updated
fork time in 1 week ago
Nov
24
1 week ago
Previous