( state: State, action: ReducerAction<T> )
| 49 | }; |
| 50 | |
| 51 | export function inputReducer<T extends keyof State>( |
| 52 | state: State, |
| 53 | action: ReducerAction<T> |
| 54 | ) { |
| 55 | switch (action.type) { |
| 56 | case action.type: |
| 57 | return { ...state, [action.type]: action.payload }; |
| 58 | default: |
| 59 | return state; |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | export const isWeb = Platform.OS === 'web'; |
| 64 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…