score:1

Accepted answer

all you need to do is create the file and create a function in that file. this question has an answer that explains it

how to create helper file full of functions in react native?

you need to create the file validation.js

then

export function validation(e){
//your code

}

then import it in the file you currently have like this

import {validation} from './utils/validation'

Related Query

More Query from same tag