Hi Madhumitha R,
First I hope you would have created the widget (empty)
1).npm install -g yo , 2). npm install -g @mendix/generator-widget,npm i @mendix/pluggable-widgets-tools. once created the empty widget try this
npm i react-native-document-picker and npm i react-native-fs
I hope it helps