File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,15 +4,16 @@ Config plugin to auto configure react-native-keyevent on prebuild
44### Add the package to your npm dependencies
55
66```
7- yarn add react-native-keyevent react-native-keyevent-expo-config-plugin
7+ yarn add react-native-keyevent
8+ yarn add --dev react-native-keyevent-expo-config-plugin
89```
910
1011In your ` app.json ` or equivalent, add the following;
1112``` js
1213{
1314 expo: {
1415 /* ... */
15- plugins: [' ./plugins/withReactNativeKeyEvent ' ],
16+ plugins: [' react-native-keyevent-expo-config-plugin ' ],
1617 },
1718 }
1819```
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ const withAndroidMainActivityImport = (config) => {
8484 tag : 'react-native-keyevent-import' ,
8585 src : config . modResults . contents ,
8686 newSrc : newSrc . join ( '\n' ) ,
87- anchor : `package com.morrow.flint ;` ,
87+ anchor : `;` ,
8888 offset : 1 ,
8989 comment : '//' ,
9090 } ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-keyevent-expo-config-plugin" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.1 " ,
44 "description" : " Config plugin to auto configure react-native-keyevent on prebuild" ,
55 "main" : " build/withReactNativeKeyevent.js" ,
66 "types" : " build/withReactNativeKeyevent.d.ts" ,
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ const withAndroidMainActivityImport: ConfigPlugin = (config) => {
8484 tag : 'react-native-keyevent-import' ,
8585 src : config . modResults . contents ,
8686 newSrc : newSrc . join ( '\n' ) ,
87- anchor : `package com.morrow.flint ;` ,
87+ anchor : `;` ,
8888 offset : 1 ,
8989 comment : '//' ,
9090 } ) ;
You can’t perform that action at this time.
0 commit comments