MCPcopy Create free account
hub / github.com/callstack/react-native-paper / inputReducer

Function inputReducer

example/utils/index.ts:51–61  ·  view source on GitHub ↗
(
  state: State,
  action: ReducerAction<T>
)

Source from the content-addressed store, hash-verified

49};
50
51export 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
63export const isWeb = Platform.OS === 'web';
64

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…